EnumExtensions Members

The EnumExtensions type exposes the following members.

Methods


  Name Description
Public method Static member Count<(Of <<'(T>)>>)
Counts the specified soure.
Public method Static member Description
Descriptions the specified soure.
Public method Static member EnumToDictionary
Converts Enumeration type into a dictionary of names and values var dictionary = typeof(UriFormat).EnumToDictionary();
Public method Static member EnumToList<(Of <<'(T>)>>)
Enums to list.
Public method Static member GetAttribute<(Of <<'(T>)>>)
Gets the attribute. This extension method is broken out so you can use a similar pattern with other MetaData elements in the future. This is your base method for each.
Public method Static member HasDescription(Enum)
Determines whether this instance has description.
Public method Static member HasDescription(Enum, String)
Determines whether the specified expected description has description.
Public method Static member HasDescription(Enum, String, StringComparison)
Determines whether the specified expected description has description.
Public method Static member ToEnum<(Of <<'(T>)>>)
To the enum.
Public method Static member ToInt<(Of <<'(T>)>>)
Converts the string representation of a number to an integer.
Public method Static member ToName
To the name. This method creates a specific call to the above method, requesting the Description MetaData attribute.