C# Class Framework.Core.Extensions.StringExtensions

Extends string class functionality.
显示文件 Open project: coreframework/Core-Framework

Public Methods

Method Description
Capitalize ( this word ) : String

Capitalizes a word.

Humanize ( this propertyName ) : String

Translate camelCase or PascalCase property name to human readable name (splits it to words and capitilize first word).

Pluralize ( this word ) : String

Return the plural of a word.

Singularize ( this word ) : String

Return the singular of a word.

Method Details

Capitalize() public static method

Capitalizes a word.
public static Capitalize ( this word ) : String
word this The word to be capitalized.
return String

Humanize() public static method

Translate camelCase or PascalCase property name to human readable name (splits it to words and capitilize first word).
public static Humanize ( this propertyName ) : String
propertyName this Property name in camelCase or PascalCase.
return String

Pluralize() public static method

Return the plural of a word.
public static Pluralize ( this word ) : String
word this The singular form.
return String

Singularize() public static method

Return the singular of a word.
public static Singularize ( this word ) : String
word this The plural form.
return String