You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/SA1113.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ A comma between two parameters in a call to a C# method or indexer, or in the de
23
23
24
24
A violation of this rule occurs when a comma between two parameters to a method or indexer is not placed on the same line as the previous parameter. The following examples show correct placement of the comma:
25
25
26
+
The same guidance applies to constructor invocations and object creation expressions, including target-typed `new` introduced in C# 9. Commas separating arguments to `new(...)` must appear on the same line as the preceding argument.
0 commit comments