ConversionsToEnum Method (String, Enum) |
Converts an input string to an enumeration member
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static Enum ToEnum(
string text,
Enum defaultValue
)
Parameters
- text
- Type: SystemString
The input text. - defaultValue
- Type: SystemEnum
The default value to use if conversion is not possible.
Return Value
Type:
EnumAn instance of the enumeration set to value.
Exceptions See Also