C# Enum ToObject(Type, Int16)
Description
Enum ToObject(Type, Int16)
converts the specified 16-bit
signed integer to an enumeration member.
Syntax
Enum.ToObject(Type, Int16)
has the following syntax.
[ComVisibleAttribute(true)]/*from w w w. ja v a2 s . c o m*/
public static Object ToObject(
Type enumType,
short value
)
Parameters
Enum.ToObject(Type, Int16)
has the following parameters.
enumType
- The enumeration type to return.value
- The value to convert to an enumeration member.
Returns
Enum.ToObject(Type, Int16)
method returns An instance of the enumeration set to value.