Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using private constructors and deserializing properties with private setters #83

Open
mrpmorris opened this issue Aug 24, 2018 · 0 comments

Comments

@mrpmorris
Copy link

mrpmorris commented Aug 24, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant