MsgPack.Serialization.EnumMessagePackSerializer< TEnum > Class Template Referenceabstract

Defines basic features for enum object serializers. More...

Inherits MsgPack.Serialization.MessagePackSerializer< TEnum >, and MsgPack.Serialization.ICustomizableEnumSerializer.

Protected Member Functions

 EnumMessagePackSerializer (SerializationContext ownerContext, EnumSerializationMethod serializationMethod)
 Initializes a new instance of the EnumMessagePackSerializer<TEnum> class. More...
 

Detailed Description

Defines basic features for enum object serializers.

Template Parameters
TEnumThe type of enum type itself.

This class supports auto-detect on deserialization. So the constructor parameter only affects serialization behavior.

Type Constraints
TEnum :struct 

Constructor & Destructor Documentation

◆ EnumMessagePackSerializer()

Initializes a new instance of the EnumMessagePackSerializer<TEnum> class.

Parameters
ownerContextA SerializationContext which owns this serializer.
serializationMethodThe EnumSerializationMethod which determines serialization form of the enums.
Exceptions
InvalidOperationExceptionTEnum is not enum type.

The documentation for this class was generated from the following file:
  • MsgPackSources/Serialization/EnumMessagePackSerializer`1.cs