阅读背景:

您能否检测到您反序列化的对象是否丢失了Json.NET中JsonConvert类的字段

来源:互联网 

I'm trying to deserialize some Json objects using Json.NET. I've found however that when I deserialize an object that doesn't have the properties I'm looking for that no error is thrown up but a default value is returned for the properties when I access them. It's important that I'm able to detect when I've deserialized the wrong type of object. Example code:I'm trying to deserialize some Json objects usi




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

分享到: