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
publicclassObj1{[MessagePackMember(0)]publicstringId{get;set;}[MessagePackMember(1)]publicList<string>Items{get;set;}}publicclassObj2{[MessagePackMember(0)]publicstringId{get;set;}// doesn't know about Items}voidThisMethodThrowsIndexOutOfBoundsException(){using(varmemStream=newMemoryStream()){SerializationContext.Default.GetSerializer<Obj1>().Pack(memStream,newObj1{Id="1",Items=newList<string>{"a","b"}});memStream.Seek(0,SeekOrigin.Begin);varserializer2=SerializationContext.Default.GetSerializer<Obj2>();// this call throwsObj2obj=serializer2.Unpack(memStream);}}
Works well in full .NET
MsgPack Cli is installed from Nuget, version 0.8.0