facebook-csharp-sdk / simple-json

JSON library for .NET 2.0+/SL4+/WP7/WindowsStore with optional support for dynamic and DataContract
MIT License
382 stars 143 forks source link

Using private constructors and deserializing properties with private setters #83

Open mrpmorris opened 6 years ago

mrpmorris commented 6 years ago

I have objects that are immutible but I want to be able to deserialize instances.

If I submit a pull-request that allows the user to optionally specify that private parameterless constructors may be used, and the setting of properties with private setters, would this be considered for inclusion or is this something you wouldn't be prepared to allow?

PS: It's the pattern EntityFramework-Core uses (private parameterless constructors / private setters on public properties)