C# Enum ToObject(Type, Byte)
Description
Enum ToObject(Type, Byte)
converts the specified 8-bit
unsigned integer to an enumeration member.
Syntax
Enum.ToObject(Type, Byte)
has the following syntax.
[ComVisibleAttribute(true)]/*from w ww .ja v a 2 s. c om*/
public static Object ToObject(
Type enumType,
byte value
)
Parameters
Enum.ToObject(Type, Byte)
has the following parameters.
enumType
- The enumeration type to return.value
- The value to convert to an enumeration member.
Returns
Enum.ToObject(Type, Byte)
method returns An instance of the enumeration set to value.