-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
Description
From the example:
// csharp_style_implicit_object_creation_when_type_is_apparent = true
C c = new();
C c2 = new() { Field = 0 };
but SA1000 requires space after new keyword.
Which one should be given priority?
Suppressing one or another is not cool. It's about syntactic sugar, so the code should be more concise, not less.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: f9ae307d-3966-023f-b327-406e7d605436
- Version Independent ID: a55dc225-570c-97be-63c5-d27830efa653
- Content: IDE0090: Simplify 'new' expression - .NET
- Content Source: docs/fundamentals/code-analysis/style-rules/ide0090.md
- Product: dotnet-fundamentals
- GitHub Login: @gewarren
- Microsoft Alias: gewarren