SerializationContextCreateClassicContext Method |
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static SerializationContext CreateClassicContext()
Public Shared Function CreateClassicContext As SerializationContext
public:
static SerializationContext^ CreateClassicContext()
static member CreateClassicContext : unit -> SerializationContext
Return Value
Type:
SerializationContext
A new
SerializationContext which is configured as same as 0.5.
Remarks
There are breaking changes of
SerializationContext properties to improve API usability and to prevent accidental failure.
This method returns a
SerializationContext which configured as classic style settings as follows:
| Default (as of 0.6) | Classic (before 0.6) |
---|
Packed object members order (if members are not marked with MessagePackMemberAttribute nor System.Runtime.Serialization.DataMemberAttribute and serializer uses Array) | As declared (metadata table order) | As lexicographical |
DateTime value | Native representation (100-nano ticks, preserving DateTimeKind.) | UTC, milliseconds Unix epoc. |
See Also