EnumExtensions Members
The EnumExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
Count<(Of <<'(T>)>>) |
Counts the specified soure.
|
![]() ![]() |
Description |
Descriptions the specified soure.
|
![]() ![]() |
EnumToDictionary |
Converts Enumeration type into a dictionary of names and values
var dictionary = typeof(UriFormat).EnumToDictionary();
|
![]() ![]() |
EnumToList<(Of <<'(T>)>>) |
Enums to list.
|
![]() ![]() |
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.
|
![]() ![]() |
HasDescription(Enum) |
Determines whether this instance has description.
|
![]() ![]() |
HasDescription(Enum, String) |
Determines whether the specified expected description has description.
|
![]() ![]() |
HasDescription(Enum, String, StringComparison) |
Determines whether the specified expected description has description.
|
![]() ![]() |
ToEnum<(Of <<'(T>)>>) |
To the enum.
|
![]() ![]() |
ToInt<(Of <<'(T>)>>) |
Converts the string representation of a number to an integer.
|
![]() ![]() |
ToName |
To the name.
This method creates a specific call to the above method, requesting the
Description MetaData attribute.
|