StringUtils.ToTrainCase method

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

ToTrainCase(string)

Static

Converts the specified str to a train cased string (upper case words separated by hyphens).

public static string ToTrainCase(string str)

Parameters

str String

The string to be converted.

Returns

The train cased string.

ToTrainCase(Enum)

Static

Converts the name of the specified enum value to a train cased string (upper case words separated by hyphens).

public static string ToTrainCase(Enum value)

Parameters

value Enum

The enum value to be converted.

Returns

The camel cased string.