StringExtensions.ToCasing method

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

ToCasing(Enum, TextCasing)

Extension method

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

public static string ToCasing(this 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)

Extension method

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

public static string ToCasing(this 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.