HelperGetEnumFromDescriptionT Method |
Returns the enum value having the given Description attribute text (or value name), or the default value if not found
Namespace: Seal.HelpersAssembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntaxpublic static T GetEnumFromDescription<T>(
string description,
T defaultValue
)
where T : Enum
Parameters
- description String
-
- defaultValue T
-
Type Parameters
- T
Return Value
T
See Also