C# Class Felinesoft.UmbracoCodeFirst.Extensions.CasingExtensions

Extensions to convert strings between proper, pascal and camel case
ファイルを表示 Open project: DanMannMann/UmbracoCodeFirst

Public Methods

Method Description
ToCamelCase ( this the_string ) : string

Convert the string to camel case

ToPascalCase ( this the_string ) : string

Convert the string to Pascal case.

ToProperCase ( this the_string ) : string

Capitalize the first character and add a space before each capitalized letter except the first character.

Method Details

ToCamelCase() public static method

Convert the string to camel case
public static ToCamelCase ( this the_string ) : string
the_string this
return string

ToPascalCase() public static method

Convert the string to Pascal case.
public static ToPascalCase ( this the_string ) : string
the_string this
return string

ToProperCase() public static method

Capitalize the first character and add a space before each capitalized letter except the first character.
public static ToProperCase ( this the_string ) : string
the_string this
return string