EnumExtensions.GetDisplayDescription Method

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

GetDisplayDescription(Enum)

Get the enum description text from the enum display attribute if exists, otherwise null.

public static string GetDisplayDescription(this Enum e)

Parameters

e
System.Enum

Returns

string

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