EnumMessagePackSerializerTEnumUnpackFromUnderlyingValue Method |
Unpacks enum value from underlying integral value.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax protected abstract TEnum UnpackFromUnderlyingValue(
MessagePackObject messagePackObject
)
Protected MustOverride Function UnpackFromUnderlyingValue (
messagePackObject As MessagePackObject
) As TEnum
protected:
virtual TEnum UnpackFromUnderlyingValue(
MessagePackObject messagePackObject
) abstract
abstract UnpackFromUnderlyingValue :
messagePackObject : MessagePackObject -> 'TEnum
Parameters
- messagePackObject
- Type: MsgPackMessagePackObject
The message pack object which represents some integral value.
Return Value
Type:
TEnum
An enum value.
Exceptions Exception | Condition |
---|
SerializationException | The type of integral value is not compatible with underlying type of the enum. |
See Also