예제 #1
0
 public static string ToTrainCase(this string text)
 {
     return(StringUtilsExtensions.ConvertCase(text, '-', new Func <char, char>(char.ToUpperInvariant), new Func <char, char>(char.ToUpperInvariant)));
 }
예제 #2
0
 public static string ToSnakeCase(this string text)
 {
     return(StringUtilsExtensions.ConvertCase(text, '_', new Func <char, char>(char.ToLowerInvariant), new Func <char, char>(char.ToLowerInvariant)));
 }
예제 #3
0
 public static string ToCamelCase(this string text)
 {
     return(StringUtilsExtensions.ConvertCase(text, StringUtilsExtensions.NoDelimiter, new Func <char, char>(char.ToLowerInvariant), new Func <char, char>(char.ToUpperInvariant)));
 }