C# Class Framework.Core.Extensions.StringExtensions

Extends string class functionality.
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode 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 méthode

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

Humanize() public static méthode

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.
Résultat String

Pluralize() public static méthode

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

Singularize() public static méthode

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