Skip to content

Using private constructors and deserializing properties with private setters #83

Description

@mrpmorris

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions