StringExtensions.ToPascalCase method

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

ToPascalCase(string)

Extension method

Converts the specified str to Pascal case (also referred to as upper camel casing).

public static string ToPascalCase(this string str)

Parameters

str String

The string to be converted.

Returns

The Pascal cased string.

ToPascalCase(Enum)

Extension method

Converts the name of the specified enum value to a Pascal cased string.

public static string ToPascalCase(this Enum value)

Parameters

value Enum

The enum value to be converted.

Returns

The Pascal cased string.