SerializationContextDefaultDateTimeConversionMethod Property |
Gets or sets the default
DateTime conversion methods of built-in serializers.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public DateTimeConversionMethod DefaultDateTimeConversionMethod { get; set; }
Public Property DefaultDateTimeConversionMethod As DateTimeConversionMethod
Get
Set
public:
property DateTimeConversionMethod DefaultDateTimeConversionMethod {
DateTimeConversionMethod get ();
void set (DateTimeConversionMethod value);
}
member DefaultDateTimeConversionMethod : DateTimeConversionMethod with get, set
Property Value
Type:
DateTimeConversionMethod
The default
DateTime conversion methods of built-in serializers. The default is
Native.
Remarks
As of 0.6,
DateTime value is serialized as its native representation instead of interoperable UTC milliseconds Unix epoc.
This behavior solves some debugging problem and interop issues, but breaks compability.
If you want to change this behavior, set this value to
UnixEpoc.
See Also