EnumExtensions.GetDisplayName(Enum) Method

Definition

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.

Applies to