MsgPack.Serialization.MessagePackEnumAttribute Class Reference

Marks that this enum type has special characteristics on MessagePack serialization. More...

Inherits Attribute.

Public Member Functions

 MessagePackEnumAttribute ()
 Initializes a new instance of the MessagePackEnumAttribute class. More...
 

Properties

EnumSerializationMethod SerializationMethod [get, set]
 Gets or sets the default serialization method for this enum type. More...
 

Detailed Description

Marks that this enum type has special characteristics on MessagePack serialization.

Enum types which are not marked with this attribute will be serialized as SerializationContext.EnumSerializationMethod value.

Constructor & Destructor Documentation

◆ MessagePackEnumAttribute()

MsgPack.Serialization.MessagePackEnumAttribute.MessagePackEnumAttribute ( )

Initializes a new instance of the MessagePackEnumAttribute class.

Property Documentation

◆ SerializationMethod

EnumSerializationMethod MsgPack.Serialization.MessagePackEnumAttribute.SerializationMethod
getset

Gets or sets the default serialization method for this enum type.

The default serialization method for this enum type. Note that the method for individual enum typed members will be overrided with MessagePackEnumMemberAttribute.


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