Click or drag to resize
EnumToObject Method (Type, SByte)
Converts the specified 8-bit signed integer value to an enumeration member.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static Object ToObject(
	Type enumType,
	sbyte value
)

Parameters

enumType
Type: SystemType
The enumeration type to return.
value
Type: SystemSByte
The value to convert to an enumeration member.

Return Value

Type: Object
An instance of the enumeration set to value.
Exceptions
ExceptionCondition
ArgumentNullExceptionenumType is null.
ArgumentExceptionenumType is not an Enum.
See Also