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

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

Open
fjmorel opened this issue Feb 1, 2023 · 0 comments
Open

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

fjmorel opened this issue Feb 1, 2023 · 0 comments

Comments

@fjmorel
Copy link

fjmorel commented Feb 1, 2023

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.

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