|
class | EnumValueNames |
| Static class to hold the caches of names
|
|
static String EnumExtensions.Description |
( |
this Enum |
e | ) |
|
|
inlinestatic |
Return the Description attribute
- Returns
- DescriptionAttribute of the enum (or the enum name if no description)
static String EnumExtensions.displayDescription |
( |
this Enum |
e | ) |
|
|
inlinestatic |
Get the Localized Enum Description
- Returns
- Localized DescriptionAttribute of the enum (or the enum name if no description)
static List<String> EnumExtensions.GetDescriptions< TEnum > |
( |
TEnum |
value | ) |
|
|
inlinestatic |
Get a list of all the descriptions from an Enum - similar to Enum.GetNames()
- Template Parameters
-
- Parameters
-
- Returns
- List of Descriptions
- Type Constraints
-
TEnum | : | struct | |
TEnum | : | IConvertible | |
static String EnumExtensions.ToStringCached |
( |
this Enum |
e | ) |
|
|
inlinestatic |
Get the ToString value, but cache the result each time
As the Enum definition cant change this saves us lots of ToString Conversions
- Returns
- The Name of the value
The documentation for this class was generated from the following file: