You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not convert System.String MessagePackObject to System.Int64.
at MsgPack.MessagePackObject.ThrowInvalidTypeAs[T](MessagePackObject instance)
at MsgPack.MessagePackObject.AsInt64()
at MsgPack.Serialization.DefaultSerializers.NativeDateTimeMessagePackSerializer.UnpackFromCore(Unpacker unpacker)
at MsgPack.Serialization.MessagePackSerializer`1.UnpackFrom(Unpacker unpacker)
at MsgPack.Serialization.MessagePackSerializer`1.Unpack(Stream stream)
at MsgPack.Serialization.MessagePackSerializer`1.UnpackSingleObject(Byte[] buffer)
at _HashSetSeralizationFailsAndWriteFails() in Test.cs:line 391
This issue occurs when I try to deserialize serialized string as DateTime. Here is a reproduce code:
var date = MessagePackSerializer.Get<DateTime>().UnpackSingleObject(MessagePackSerializer.Get<string>().PackSingleObject("test"))
I would expect to get standard SerializationException as MsgPack does whet I try to deserialize same serialized string as a HashSet<string> instance.