C# 클래스 NHibernate.OData.Inflector

Contains utility methods for working with English natural language strings.
파일 보기 프로젝트 열기: pvginkel/NHibernate.OData 1 사용 예제들

공개 메소드들

메소드 설명
Camelize ( string value ) : string

Converts an underscore style text into a camelized form.

Camelize ( string value, bool firstLetterUppercase ) : string

Converts an underscore style text into a camelized form.

Pluralize ( string value ) : string

Get the plural form of a singular text.

Singularize ( string value ) : string

Get the singular for for a plural text.

Underscore ( string value ) : string

Converts a camelized style text into an underscored form.

비공개 메소드들

메소드 설명
AddIrregular ( string singular, string plural ) : void
AddPlural ( string expression, string replacement ) : void
AddPlural ( string expression, string replacement, bool caseSensitive ) : void
AddSingular ( string expression, string replacement ) : void
AddSingular ( string expression, string replacement, bool caseSensitive ) : void
Inflector ( ) : System

메소드 상세

Camelize() 공개 정적인 메소드

Converts an underscore style text into a camelized form.
public static Camelize ( string value ) : string
value string The underscore style text to get the /// camelized form for.
리턴 string

Camelize() 공개 정적인 메소드

Converts an underscore style text into a camelized form.
public static Camelize ( string value, bool firstLetterUppercase ) : string
value string The underscore style text to get the /// camelized form for.
firstLetterUppercase bool true when the first /// letter of the returned value should be upper case. The default /// value for this parameter is true.
리턴 string

Pluralize() 공개 정적인 메소드

Get the plural form of a singular text.
public static Pluralize ( string value ) : string
value string The singular text for which to get /// the plural form.
리턴 string

Singularize() 공개 정적인 메소드

Get the singular for for a plural text.
public static Singularize ( string value ) : string
value string The plural text for which to /// get the singular form.
리턴 string

Underscore() 공개 정적인 메소드

Converts a camelized style text into an underscored form.
public static Underscore ( string value ) : string
value string The camelized style text to get the /// underscored form for.
리턴 string