The difference between Converter and MemberConverter properties of Json.NET's JsonProperty

后端 未结 2 419
北恋
北恋 2021-01-17 17:00

The JsonProperty class returned by DefaultContractResolver.CreateProperty has two properties about converter, Converter and Memb

2条回答
  •  青春惊慌失措
    2021-01-17 17:49

    I've opened an issue about the docs on this here github.com/JamesNK/Newtonsoft.Json/issues/363.

    But one obvious difference between them (obvious from the source code, that is) is that Converter is only used when serializing and MemberConverter only when deserializing. I don't know if that's the full story though, and the naming does not say much.

提交回复
热议问题