C# Class NLite.Inflector

单复数类型互相转换类
ファイルを表示 Open project: netcasewqs/elinq

Public Methods

Method Description
Plural ( string word ) : string

单数转复数

Singular ( string word ) : string

复数转单数

Private Methods

Method Description
AddIrregularRule ( string singular, string plural ) : void
AddPluralRule ( string rule, string replacement ) : void
AddSingularRule ( string rule, string replacement ) : void
AddUnknownCountRule ( string word ) : void
ApplyRules ( IList rules, string word ) : string
Inflector ( ) : System

Method Details

Plural() public static method

单数转复数
public static Plural ( string word ) : string
word string
return string

Singular() public static method

复数转单数
public static Singular ( string word ) : string
word string
return string