Click or drag to resize

ConversionsToEnum Method (Object, Enum)

Converts an input value 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 Object ToEnum(
	Object obj,
	Enum defaultValue
)

Parameters

obj
Type: SystemObject
The input object.
defaultValue
Type: SystemEnum
The default value if conversion is not possible.

Return Value

Type: Object
An instance of the enumeration set to value.
Exceptions
ExceptionCondition
ArgumentNullExceptiondefaultValue is null.
See Also