EnumMapper.Parse<TEnum> method
namespace: Serenity assembly: Serenity.Net.Core
Parses the specified enum key.
public static TEnum Parse<TEnum>(string key)
parameter | description |
---|---|
TEnum | The type of the enum. |
key | The enum key or numeric value. |
Return Value
Parsed enum value
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Enum value is not valid. |
See Also
- class TEnum
- class EnumMapper