StringUtils.ToCasing method

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

ToCasing(Enum, TextCasing)

Static

Converts the specified enum value to a string with the enum name is formatted using the specified casing.

public static string ToCasing(Enum value, TextCasing casing)

Parameters

value Enum

The enum value to be converted.

casing TextCasing

The casing of the output string.

Returns

The output string, matching the specified casing.

ToCasing(string, TextCasing)

Static

Converts the specified str to a new string formatted using the specified casing.

public static string ToCasing(string str, TextCasing casing)

Parameters

str String

The string to be converted.

casing TextCasing

The casing of the output string.

Returns

The output string, matching the specified casing.