阅读背景:

如何使用JsonConverter仅序列化类的继承属性

来源:互联网 

I'm trying to serialize only the inherited properties of a class using json.net. I'm aware of the [JsonIgnore] attribute, but I only want to do ignore them on certain occasion, so I used a custom JsonConverter instead.I'm trying to serialize only the inherited prop




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

分享到: