C# Class GSF.StringExtensions

Defines extension functions related to string manipulation.
Show file Open project: GridProtectionAlliance/gsf

Public Methods

Method 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

Method Description
StringExtensions ( ) : System

Method Details

IsPlural() public static method

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

IsSingular() public static method

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

ToPlural() public static method

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

ToSingular() public static method

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