EnumExtensions Class
Defines extension methods related to enumerations.
Namespace: Gemstone.EnumExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
public static class EnumExtensions
<ExtensionAttribute>
Public NotInheritable Class EnumExtensions
[ExtensionAttribute]
public ref class EnumExtensions abstract sealed
Gemstone.EnumExtensions.EnumExtensions = function();
Type.createClass(
'Gemstone.EnumExtensions.EnumExtensions');
- Inheritance
- Object EnumExtensions
| GetDescription |
Retrieves the description of the value that this Enum represents extracted from the DescriptionAttribute, or the enumeration name
if no description is available.
|
| GetEnumValueByDescription |
Gets the enumeration of the specified type whose description matches this description.
|
| GetEnumValueByName |
Gets the enumeration value with the specified name.
|
| GetEnumValueOrDefault(Object, Type, Object) |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
|
| GetEnumValueOrDefaultT(Object, Object) |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
|
| GetFormattedName |
Retrieves a formatted name of the value that this Enum represents for visual display.
Enum string name is converted to a label with spaces before each capital letter, other than the first.
|