Method GetEnum
GetEnum<TEnum>()
Gets an Enum object representation from this StringValue, parsing the current string expression into an value of
TEnum
. This method will throw an NullReferenceException if
the value stored in this instance is null.
public TEnum GetEnum<TEnum>() where TEnum : struct, Enum
Returns
- TEnum
Type Parameters
TEnum
The Enum type.