Offer a way to remove things added by being a `record`
fjmorel opened this issue · 0 comments
fjmorel commented
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.