Ejemplo n.º 1
0
 public Compiler() : base()
 {
     Inflector = new I.Inflector(new CultureInfo("en"));
 }
Ejemplo n.º 2
0
 public InflectorPluralizer()
 {
     PluralizerService = new Inflector.Inflector(CultureInfo.CurrentCulture);
 }
 public static string Uncapitalize(this string word)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Uncapitalize(word);
 }
 public static string Underscore(this string pascalCasedWord)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Underscore(pascalCasedWord);
 }
 public static string Titleize(this string word)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Titleize(word);
 }
 public static string Singularize(this string word)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Singularize(word);
 }
 public static string Pascalize(this string lowercaseAndUnderscoredWord)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Pascalize(lowercaseAndUnderscoredWord);
 }
 public static string Ordinalize(this int number)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Ordinalize(number);
 }
 public static string Dasherize(this string underscoredWord)
 {
     Inflector inflector = new Inflector(GetCurrentCulture());
     return inflector.Dasherize(underscoredWord);
 }