Skip to main content
Version: 4.0 (next)

Humanizer.EnumHumanizeSource

EnumHumanizeSource Enum

Specifies the source used to humanize an enum value.

public enum EnumHumanizeSource

Fields

Default 0

Uses the default metadata precedence, falling back to the enum member name.

EnumName 1

Uses the enum member name.

DisplayName 2

Uses System.ComponentModel.DataAnnotations.DisplayAttribute.Name, falling back to the enum member name.

DisplayDescription 3

Uses System.ComponentModel.DataAnnotations.DisplayAttribute.Description, falling back to the enum member name.

DisplayShortName 4

Uses System.ComponentModel.DataAnnotations.DisplayAttribute.ShortName, then System.ComponentModel.DataAnnotations.DisplayAttribute.Name, falling back to the enum member name when neither is available.