C# 클래스 YamlDotNet.Serialization.Utilities.StringExtensions

Various string extension methods
파일 보기 프로젝트 열기: aaubry/YamlDotNet

공개 메소드들

메소드 설명
FromCamelCase ( this str, string separator ) : string

Convert the string from camelcase (thisIsATest) to a hyphenated (this-is-a-test) or underscored (this_is_a_test) string

ToCamelCase ( this str ) : string

Convert the string with underscores (this_is_a_test) or hyphens (this-is-a-test) to camel case (thisIsATest). Camel case is the same as Pascal case, except the first letter is lowercase.

ToPascalCase ( this str ) : string

Convert the string with underscores (this_is_a_test) or hyphens (this-is-a-test) to pascal case (ThisIsATest). Pascal case is the same as camel case, except the first letter is uppercase.

비공개 메소드들

메소드 설명
ToCamelOrPascalCase ( string str, char>.Func firstLetterTransform ) : string

메소드 상세

FromCamelCase() 공개 정적인 메소드

Convert the string from camelcase (thisIsATest) to a hyphenated (this-is-a-test) or underscored (this_is_a_test) string
public static FromCamelCase ( this str, string separator ) : string
str this String to convert
separator string Separator to use between segments
리턴 string

ToCamelCase() 공개 정적인 메소드

Convert the string with underscores (this_is_a_test) or hyphens (this-is-a-test) to camel case (thisIsATest). Camel case is the same as Pascal case, except the first letter is lowercase.
public static ToCamelCase ( this str ) : string
str this String to convert
리턴 string

ToPascalCase() 공개 정적인 메소드

Convert the string with underscores (this_is_a_test) or hyphens (this-is-a-test) to pascal case (ThisIsATest). Pascal case is the same as camel case, except the first letter is uppercase.
public static ToPascalCase ( this str ) : string
str this String to convert
리턴 string