StringExtensions.ToKebabCase method

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

ToKebabCase(string)

Extension method

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

public static string ToKebabCase(this string str)

Parameters

str String

The string to be converted.

Returns

The kebab cased string.

ToKebabCase(Enum)

Extension method

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

public static string ToKebabCase(this Enum value)

Parameters

value Enum

The enum value to be converted.

Returns

The camel cased string.