Humanizer.EnumHumanizeExtensions
EnumHumanizeExtensions Class
Contains extension methods for humanizing Enums
public static class EnumHumanizeExtensions
Inheritance System.Object → EnumHumanizeExtensions
Methods
EnumHumanizeExtensions.Humanize(this Enum) Method
Turns an enum member into a human readable string; e.g. AnonymousUser -> Anonymous user. It also honors DescriptionAttribute data annotation
public static string Humanize(this System.Enum input);
Parameters
input System.Enum
The enum member to be humanized
Returns
EnumHumanizeExtensions.Humanize(this Enum, LetterCasing) Method
Turns an enum member into a human readable string with the provided casing; e.g. AnonymousUser with Title casing -> Anonymous User. It also honors DescriptionAttribute data annotation
public static string Humanize(this System.Enum input, Humanizer.LetterCasing casing);
Parameters
input System.Enum
The enum member to be humanized
casing LetterCasing
The casing to use for humanizing the enum member