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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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