C# Class GSF.StringExtensions

Defines extension functions related to string manipulation.
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
IsPlural ( this value ) : bool

Determines whether the specified word is plural.

IsSingular ( this value ) : bool

Determines whether the specified word is singular.

ToPlural ( this value ) : string

Returns the plural form of the specified word.

ToSingular ( this value ) : string

Returns the singular form of the specified word.

Private Methods

Méthode Description
StringExtensions ( ) : System

Method Details

IsPlural() public static méthode

Determines whether the specified word is plural.
public static IsPlural ( this value ) : bool
value this The word to be analyzed.
Résultat bool

IsSingular() public static méthode

Determines whether the specified word is singular.
public static IsSingular ( this value ) : bool
value this The word to be analyzed.
Résultat bool

ToPlural() public static méthode

Returns the plural form of the specified word.
public static ToPlural ( this value ) : string
value this The word to be made plural.
Résultat string

ToSingular() public static méthode

Returns the singular form of the specified word.
public static ToSingular ( this value ) : string
value this The word to be made singular.
Résultat string