EnumExtensions Class

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

Helper methods for enums.

public static class EnumExtensions
Inheritance:
System.Object → EnumExtensions

Methods

Asc(SortBy)
Desc(SortBy)
GetDisplayDescription(Enum) Get the enum description text from the enum display attribute if exists, otherwise null.
GetDisplayName(Enum) Get the enum name text from the enum display attribute if exists, otherwise the enum as string
GetFlags(Enum) Get the bit values set in the enum.
IsFlags(Enum) Gets a value indicating whether the enum has the System.FlagsAttribute.
Reverse(SortBy)