Humanizer.Configuration.Configurator
Configurator Class
Provides a configuration point for Humanizer
public static class Configurator
Inheritance System.Object → Configurator
Properties
Configurator.CollectionFormatters Property
A registry of formatters used to format collections based on the current locale
public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.CollectionFormatters.ICollectionFormatter> CollectionFormatters { get; }
Property Value
Humanizer.Configuration.LocaliserRegistry<ICollectionFormatter>
Configurator.DateTimeHumanizeStrategy Property
The strategy to be used for DateTime.Humanize
public static Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; }
Property Value
Configurator.DateTimeOffsetHumanizeStrategy Property
The strategy to be used for DateTimeOffset.Humanize
public static Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; }
Property Value
IDateTimeOffsetHumanizeStrategy
Configurator.DateToOrdinalWordsConverters Property
A registry of ordinalizers used to localise Ordinalize method
public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.DateToOrdinalWords.IDateToOrdinalWordConverter> DateToOrdinalWordsConverters { get; }
Property Value
Humanizer.Configuration.LocaliserRegistry<IDateToOrdinalWordConverter>
Configurator.EnumDescriptionPropertyLocator Property
A predicate function for description property of attribute to use for Enum.Humanize
public static System.Func<System.Reflection.PropertyInfo,bool> EnumDescriptionPropertyLocator { get; set; }
Property Value
System.Func<System.Reflection.PropertyInfo,System.Boolean>
Configurator.Formatters Property
A registry of formatters used to format strings based on the current locale
public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.Formatters.IFormatter> Formatters { get; }
Property Value
Humanizer.Configuration.LocaliserRegistry<IFormatter>
Configurator.NumberToWordsConverters Property
A registry of number to words converters used to localise ToWords and ToOrdinalWords methods
public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.NumberToWords.INumberToWordsConverter> NumberToWordsConverters { get; }
Property Value
Humanizer.Configuration.LocaliserRegistry<INumberToWordsConverter>
Configurator.Ordinalizers Property
A registry of ordinalizers used to localise Ordinalize method
public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.Ordinalizers.IOrdinalizer> Ordinalizers { get; }