Click or drag to resize

ConversionsToEnum Method (Object, Enum)

Converts an input value to an enumeration member

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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