EnumExtensions.GetDisplayName(Enum) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the enum display name.
public static string GetDisplayName (this Enum enumValue);
static member GetDisplayName : Enum -> string
<Extension()>
Public Function GetDisplayName (enumValue As Enum) As String
Parameters
- enumValue
- Enum
The enum value.
Returns
Use DisplayAttribute if exists. Otherwise, use the standard string representation.