public static object ToEnum( Type enumType, string parseValue, object defaultValue, bool ignoreCase )
Parameters
- enumType
- The enumeration type to convert to
- parseValue
- The input value to parse
- defaultValue
- The default value to return in case of failure to convert the given input
- ignoreCase
- If true case is ignored when parsing.
Return Value
The converted enumeration value