amis92 / RecordGenerator

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

Add Analyzer for case-insensitive unique names #94

Closed amis92 closed 5 years ago

amis92 commented 5 years ago

This analyzer creates an error when there are two Record entries (record-viable properties) that differ only by case - in other words are case-insensitive equal. This is because in generated code there appear case-changed names. For example, constructor parameter names are property names that have their first letter lower-cased. If there were properties 'Name' and 'name', both of their corresponding parameters would be called 'name'.

closes #28