阅读背景:

列出内部可序列化对象,而不是在C#中正确反序列化

来源:互联网 

I have this object called MyObject in C# and I've been trying to make it so that we can take this object, serialize it to JSON, use that JSON to populate other lists in JavaScript, etc, and then use the resulting changed JSON string to be fed back into the MyObject object and change its values. However, whenever I call Json() on this object, it gives me correctly serialized JSON, but when I feed that exact JSON back into the UpdateFromJson(string json) method, it claims that the List is of count=0 and I get none of my List objects in the new object. The other properties populate just fine; the only problem is with the List.I have this object called MyObject in C# and I'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: