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
[DataContract]
public class Client
{
[DataMember(Order = 0)]
public int Id { get; set; }
[DataMember(Order = 1)]
public Information Information { get; set; }
}
[DataContract]
public class Information
{
[DataMember(Order = 0)]
public string Name { get; set; }
}
When I unpack it from server side I get
[1, ['John']]
The data is correct but it's not an object. I understand the reason but is there any way to convert it to my model?
The text was updated successfully, but these errors were encountered:
When I pack the object using this library and send it to c# client it succeeds to unpack it because I specify to which object I want to upack it var serializer = SerializationContext.Default.GetSerializer<Client>(); var client = serializer.Unpack(stream) I suppose this library should also have something similar?
I using https://github.com/msgpack/msgpack-cli and here are my classes
When I unpack it from server side I get
[1, ['John']]
The data is correct but it's not an object. I understand the reason but is there any way to convert it to my model?
The text was updated successfully, but these errors were encountered: