Click or drag to resize

ConversionsEnumTryParse Method

Converts an input object to an equivalent enumerated object. The return value indicates whether the conversion succeeded.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool EnumTryParse(
	Type type,
	Object input,
	out Object value
)

Parameters

type
Type: SystemType
The enum type.
input
Type: SystemObject
The input object.
value
Type: SystemObject
The returned enum value.

Return Value

Type: Boolean
true if conversion succeeded, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptiontype is null.
ArgumentExceptiontype is not an enum type.
See Also