SerializationContextEnumSerializationMethod Property |
Gets or sets the EnumSerializationMethod to determine default serialization strategy of enum types.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public EnumSerializationMethod EnumSerializationMethod { get; set; }
Public Property EnumSerializationMethod As EnumSerializationMethod
Get
Set
public:
property EnumSerializationMethod EnumSerializationMethod {
EnumSerializationMethod get ();
void set (EnumSerializationMethod value);
}
member EnumSerializationMethod : EnumSerializationMethod with get, set
Property Value
Type:
EnumSerializationMethod
The
EnumSerializationMethod to determine default serialization strategy of enum types.
Remarks
A serialization strategy for specific
member is determined as following:
If the member is marked with
MessagePackEnumMemberAttribute and its value is not
Default, then it will be used.Otherwise, if the enum type itself is marked with
MessagePackEnumAttribute, then it will be used.Otherwise, the value of this property will be used.
Note that the default value of this property is
ByName, it is not size efficient but tolerant to unexpected enum definition change.
See Also