Skip to content

Offer a way to remove things added by being a record #17

Description

@fjmorel

We've started using records a lot for services because not having to write out the constructor and all the private readonly fields is convenient.

It would be nice to have the option to exclude those things from the generated interface. Specifically:

  • the Deconstruct method (void Deconstructor(out param1, out param2, ...)
  • any properties that are auto-created from using a positional constructor (they have get + init)

I'm surprised the Equals and GetHashCode methods didn't get included as well, but I'm fine with that.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions