Click or drag to resize
SerializationContextCreateClassicContext Method
Creates a new SerializationContext which is configured as same as 0.5.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static SerializationContext CreateClassicContext()

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 valueNative representation (100-nano ticks, preserving DateTimeKind.)UTC, milliseconds Unix epoc.
See Also