 | EnumTEnumToEnum Method |
Converts the specified object with an integer value to an enumeration member.
Namespace: BobsAssembly: Bobs.Utilities (in Bobs.Utilities.dll) Version: 0.1.0-dev001
Syntaxpublic static TEnum ToEnum(
Object value
)
Public Shared Function ToEnum (
value As Object
) As TEnum
public:
static TEnum ToEnum(
Object^ value
)
static member ToEnum :
value : Object -> 'TEnum
Parameters
- value
- Type: SystemObject
The value to convert to an enumeration member.
Return Value
Type:
TEnumAn enumeration member whose value is value.
ExceptionsException | Condition |
---|
ArgumentNullException | value is null. |
ArgumentException | value is not type System.SByte, System.Int16,
System.Int32, System.Int64, System.Byte, System.UInt16, System.UInt32, or
System.UInt64. |
See Also