docs
docs copied to clipboard
Primary constructor editorconfig rule based on target type?
Primary constructors can be controlled by csharp_style_prefer_primary_constructors editorconfig rule. However, this rule would apply to all types. My team uses primary constructors for immutable data bags defined as records and classic constructors for classes. Is there a way to have this rule differentiate between a record and a class type?
@aventus13 Not sure if you're aware but you've created this issue in the docs repo. This behavior is determined by the compiler so if you want to raise this issue it should be done in the roslyn repo.
You'll need to open this in the roslyn repo. I can't transfer the issue.