-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
⌚ Not TriagedNot triagedNot triaged
Description
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?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: bdfa8a72-eaec-5aeb-ad5b-7b76ed1e0864
- Version Independent ID: df3dd630-3ac4-ca55-2908-9e507031a794
- Content: IDE0290: Use primary constructor - .NET
- Content Source: docs/fundamentals/code-analysis/style-rules/ide0290.md
- Service: dotnet-fundamentals
- GitHub Login: @gewarren
- Microsoft Alias: gewarren
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedNot triagedNot triaged