EnumToObject Method (Type, Object) |
Converts the specified object with an integer value to an enumeration member.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static Object ToObject(
Type enumType,
Object value
)
Parameters
- enumType
- Type: SystemType
The enumeration type to return. - value
- Type: SystemObject
The value convert to an enumeration member.
Return Value
Type:
ObjectAn enumeration object whose value is
value.
Exceptions See Also