StringExtensions.ToUnderscore method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings.Extensions
Assembly Skybrud.Essentials.dll

ToUnderscore(string)

Extension method

Converts the specified str to a lower case string with words separated by underscores.

public static string ToUnderscore(this string str)

Parameters

str String

The string to be converted.

Returns

The converted string.

ToUnderscore(Enum)

Extension method

Converts the specified enum value to a lower case string with words separated by underscores.

public static string ToUnderscore(this Enum value)

Parameters

value Enum

The enum value to be converted.

Returns

The converted string.