Click or drag to resize

ConversionsToEnum Method (String, Enum)

Converts an input string to an enumeration member

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
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: Enum
An instance of the enumeration set to value.
Exceptions
ExceptionCondition
ArgumentNullExceptiondefaultValue is null.
See Also