Quantcast
Channel: Json.NET
Viewing all articles
Browse latest Browse all 1767

New Post: Selecting the Correct constructor Without an Attribute?

$
0
0
We have lots of entities with multiple constructors. But, they can all have a public or private parameter-less constructor. Is there a way to configure json.net to always use this constructor without having to apply an attribute to it?

Note: In some cases we would have public parameterized ctors that should not be used, but would have a private ctor that should be used.

Viewing all articles
Browse latest Browse all 1767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>