Click or drag to resize
EnumMessagePackSerializerTEnum Class
Defines basic features for enum object serializers.
Inheritance Hierarchy
SystemObject
  MsgPack.SerializationMessagePackSerializerTEnum
    MsgPack.SerializationEnumMessagePackSerializerTEnum

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public abstract class EnumMessagePackSerializer<TEnum> : MessagePackSerializer<TEnum>
where TEnum : struct, new()

Type Parameters

TEnum
The type of enum type itself.

The EnumMessagePackSerializerTEnum type exposes the following members.

Constructors
  NameDescription
Protected methodEnumMessagePackSerializerTEnum
Initializes a new instance of the EnumMessagePackSerializerTEnum class.
Top
Properties
Methods
  NameDescription
Public methodPack
Serializes specified object to the Stream.
(Inherited from MessagePackSerializerT.)
Public methodPackSingleObject
Serializes specified object to the array of Byte.
(Inherited from MessagePackSerializerT.)
Public methodPackTo
Serializes specified object with specified Packer.
(Inherited from MessagePackSerializerT.)
Protected methodPackToCore
Serializes specified object with specified Packer.
(Overrides MessagePackSerializerTPackToCore(Packer, T).)
Protected methodPackUnderlyingValueTo
Packs enum value as its underlying value.
Public methodUnpack
Deserialize object from the Stream.
(Inherited from MessagePackSerializerT.)
Public methodUnpackFrom
Deserializes object with specified Unpacker.
(Inherited from MessagePackSerializerT.)
Protected methodUnpackFromCore
Deserializes object with specified Unpacker.
(Overrides MessagePackSerializerTUnpackFromCore(Unpacker).)
Protected methodUnpackFromUnderlyingValue
Unpacks enum value from underlying integral value.
Protected methodUnpackNil
Unpacks the nil value.
(Inherited from MessagePackSerializerT.)
Public methodUnpackSingleObject
Deserializes a single object from the array of Byte which contains a serialized object.
(Inherited from MessagePackSerializerT.)
Public methodUnpackTo
Deserializes collection items with specified Unpacker and stores them to collection.
(Inherited from MessagePackSerializerT.)
Protected methodUnpackToCore
Deserializes collection items with specified Unpacker and stores them to collection.
(Inherited from MessagePackSerializerT.)
Top
Remarks
This class supports auto-detect on deserialization. So the constructor parameter only affects serialization behavior.
See Also