Gets Enum from its underlying type. If the specified value doesn't have its representation in the enum, defaultValue is returned.
Exception is thrown if TEnum is not Enum.
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- value
- Type: TUnderlayingType
Value of an enum
- defaultValue
- Type: TEnum
Default value wich will be returned if value is not found within an enum
Return Value
Type: TEnumEnum element or defaultValue
Examples
See Also