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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4