amis92 / RecordGenerator

C# immutable records generator
https://amis92.github.io/RecordGenerator/
MIT License
72 stars 10 forks source link

feat: Features flags #66

Closed amis92 closed 5 years ago

amis92 commented 5 years ago

Implements feature flags for customizing which members are generated per-class.

Also includes support for assembly-default which, when declared, is used when no features are explicitly specified for a given class.

closes #45

amis92 commented 5 years ago

@atifaziz @jflepp please review this.

I've selected Constructor and With* for Basic aggregate feature.

The Default aggregate contains all currently implemented features. This is also, as the name suggests, the default when nothing is specified.

I'm open for discussions however in terms of those aggregates and especially what should the default be.

amis92 commented 5 years ago

For the Deconstruct, I'm pushing this as default because the LDT design for C# Records states that'll be generated as well.