C# Класс GSF.StringExtensions

Defines extension functions related to string manipulation.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
StringExtensions ( ) : System

Описание методов

IsPlural() публичный статический метод

Determines whether the specified word is plural.
public static IsPlural ( this value ) : bool
value this The word to be analyzed.
Результат bool

IsSingular() публичный статический метод

Determines whether the specified word is singular.
public static IsSingular ( this value ) : bool
value this The word to be analyzed.
Результат bool

ToPlural() публичный статический метод

Returns the plural form of the specified word.
public static ToPlural ( this value ) : string
value this The word to be made plural.
Результат string

ToSingular() публичный статический метод

Returns the singular form of the specified word.
public static ToSingular ( this value ) : string
value this The word to be made singular.
Результат string