EnumExtensions Class
Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Extension methods for enums.
Methods
Description
(Enum) Method
Description (Enum value)
Returns the description property of the T:System.ComponentModel.DataAnnotations.DisplayAttribute attribute for the specified enum value, or an empty string if no description attribute is present.
DisplayName
(Enum) Method
DisplayName (Enum value)
Returns the name property of the T:System.ComponentModel.DataAnnotations.DisplayAttribute attribute for the specified enum value, or the name if no display attribute is present.
Prompt
(Enum) Method
Prompt (Enum value)
Returns the prompt property of the T:System.ComponentModel.DataAnnotations.DisplayAttribute attribute for the specified enum value, or an empty string if no prompt attribute is present.