EnumExtensions.GetDisplayName Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetDisplayName(Enum)

Get the enum name text from the enum display attribute if exists, otherwise the enum as string

public static string GetDisplayName(this Enum e)

Parameters

e
System.Enum

Returns

System.String

The enum name text from the enum display attribute if exists, otherwise the enum as string