public static TEnum ToEnum<TEnum>( string parseValue, TEnum defaultValue )
Parameters
- parseValue
- The input value to parse
- defaultValue
- The default value to return in case of failure to convert the given input
Type Parameters
- TEnum
- The enumeration type to convert to
Return Value
The converted enumeration value