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: _rules/1523.md
+19-24Lines changed: 19 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,32 +4,27 @@ rule_category: maintainability
4
4
title: Favor object and collection initializers over separate statements
5
5
severity: 2
6
6
---
7
-
Instead of:
7
+
Use [Object and Collection Initializers](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers):
8
8
9
-
var startInfo = new ProcessStartInfo("myapp.exe");
0 commit comments