Skip to main content

RCS1251: Remove unnecessary braces from record declaration

Properties​

PropertyValue
Default SeverityInfo
Minimum language version-

Examples​

Example #1​

diagnostic.cs
public record Foo(string Value1, string Value2)
{
}
fix.cs
public record Foo(string Value1, string Value2);

Applies to​