@@ -11,9 +11,7 @@ partial class Builder
1111 public Builder ( T item0 )
1212 {
1313 length = 1 ;
14- #pragma warning disable IDE0300 // Simplify collection initialization
1514 items = new [ ] { item0 } ;
16- #pragma warning restore IDE0300 // Simplify collection initialization
1715
1816 Debug . Assert ( length == 1 ) ;
1917 Debug . Assert ( items . Length == 1 ) ;
@@ -25,13 +23,11 @@ public Builder(
2523 T item1 )
2624 {
2725 length = 2 ;
28- #pragma warning disable IDE0300 // Simplify collection initialization
2926 items = new [ ]
3027 {
3128 item0 ,
3229 item1
3330 } ;
34- #pragma warning restore IDE0300 // Simplify collection initialization
3531
3632 Debug . Assert ( length == 2 ) ;
3733 Debug . Assert ( items . Length == 2 ) ;
@@ -44,14 +40,12 @@ public Builder(
4440 T item2 )
4541 {
4642 length = 3 ;
47- #pragma warning disable IDE0300 // Simplify collection initialization
4843 items = new [ ]
4944 {
5045 item0 ,
5146 item1 ,
5247 item2
5348 } ;
54- #pragma warning restore IDE0300 // Simplify collection initialization
5549
5650 Debug . Assert ( length == 3 ) ;
5751 Debug . Assert ( items . Length == 3 ) ;
@@ -65,15 +59,13 @@ public Builder(
6559 T item3 )
6660 {
6761 length = 4 ;
68- #pragma warning disable IDE0300 // Simplify collection initialization
6962 items = new [ ]
7063 {
7164 item0 ,
7265 item1 ,
7366 item2 ,
7467 item3
7568 } ;
76- #pragma warning restore IDE0300 // Simplify collection initialization
7769
7870 Debug . Assert ( length == 4 ) ;
7971 Debug . Assert ( items . Length == 4 ) ;
@@ -88,7 +80,6 @@ public Builder(
8880 T item4 )
8981 {
9082 length = 5 ;
91- #pragma warning disable IDE0300 // Simplify collection initialization
9283 items = new [ ]
9384 {
9485 item0 ,
@@ -97,7 +88,6 @@ public Builder(
9788 item3 ,
9889 item4
9990 } ;
100- #pragma warning restore IDE0300 // Simplify collection initialization
10191
10292 Debug . Assert ( length == 5 ) ;
10393 Debug . Assert ( items . Length == 5 ) ;
@@ -113,7 +103,6 @@ public Builder(
113103 T item5 )
114104 {
115105 length = 6 ;
116- #pragma warning disable IDE0300 // Simplify collection initialization
117106 items = new [ ]
118107 {
119108 item0 ,
@@ -123,7 +112,6 @@ public Builder(
123112 item4 ,
124113 item5
125114 } ;
126- #pragma warning restore IDE0300 // Simplify collection initialization
127115
128116 Debug . Assert ( length == 6 ) ;
129117 Debug . Assert ( items . Length == 6 ) ;
@@ -140,7 +128,6 @@ public Builder(
140128 T item6 )
141129 {
142130 length = 7 ;
143- #pragma warning disable IDE0300 // Simplify collection initialization
144131 items = new [ ]
145132 {
146133 item0 ,
@@ -151,7 +138,6 @@ public Builder(
151138 item5 ,
152139 item6
153140 } ;
154- #pragma warning restore IDE0300 // Simplify collection initialization
155141
156142 Debug . Assert ( length == 7 ) ;
157143 Debug . Assert ( items . Length == 7 ) ;
@@ -169,7 +155,6 @@ public Builder(
169155 T item7 )
170156 {
171157 length = 8 ;
172- #pragma warning disable IDE0300 // Simplify collection initialization
173158 items = new [ ]
174159 {
175160 item0 ,
@@ -181,7 +166,6 @@ public Builder(
181166 item6 ,
182167 item7
183168 } ;
184- #pragma warning restore IDE0300 // Simplify collection initialization
185169
186170 Debug . Assert ( length == 8 ) ;
187171 Debug . Assert ( items . Length == 8 ) ;
@@ -200,7 +184,6 @@ public Builder(
200184 T item8 )
201185 {
202186 length = 9 ;
203- #pragma warning disable IDE0300 // Simplify collection initialization
204187 items = new [ ]
205188 {
206189 item0 ,
@@ -213,7 +196,6 @@ public Builder(
213196 item7 ,
214197 item8
215198 } ;
216- #pragma warning restore IDE0300 // Simplify collection initialization
217199
218200 Debug . Assert ( length == 9 ) ;
219201 Debug . Assert ( items . Length == 9 ) ;
@@ -233,7 +215,6 @@ public Builder(
233215 T item9 )
234216 {
235217 length = 10 ;
236- #pragma warning disable IDE0300 // Simplify collection initialization
237218 items = new [ ]
238219 {
239220 item0 ,
@@ -247,7 +228,6 @@ public Builder(
247228 item8 ,
248229 item9
249230 } ;
250- #pragma warning restore IDE0300 // Simplify collection initialization
251231
252232 Debug . Assert ( length == 10 ) ;
253233 Debug . Assert ( items . Length == 10 ) ;
@@ -268,7 +248,6 @@ public Builder(
268248 T item10 )
269249 {
270250 length = 11 ;
271- #pragma warning disable IDE0300 // Simplify collection initialization
272251 items = new [ ]
273252 {
274253 item0 ,
@@ -283,7 +262,6 @@ public Builder(
283262 item9 ,
284263 item10
285264 } ;
286- #pragma warning restore IDE0300 // Simplify collection initialization
287265
288266 Debug . Assert ( length == 11 ) ;
289267 Debug . Assert ( items . Length == 11 ) ;
@@ -305,7 +283,6 @@ public Builder(
305283 T item11 )
306284 {
307285 length = 12 ;
308- #pragma warning disable IDE0300 // Simplify collection initialization
309286 items = new [ ]
310287 {
311288 item0 ,
@@ -321,7 +298,6 @@ public Builder(
321298 item10 ,
322299 item11
323300 } ;
324- #pragma warning restore IDE0300 // Simplify collection initialization
325301
326302 Debug . Assert ( length == 12 ) ;
327303 Debug . Assert ( items . Length == 12 ) ;
@@ -344,7 +320,6 @@ public Builder(
344320 T item12 )
345321 {
346322 length = 13 ;
347- #pragma warning disable IDE0300 // Simplify collection initialization
348323 items = new [ ]
349324 {
350325 item0 ,
@@ -361,7 +336,6 @@ public Builder(
361336 item11 ,
362337 item12
363338 } ;
364- #pragma warning restore IDE0300 // Simplify collection initialization
365339
366340 Debug . Assert ( length == 13 ) ;
367341 Debug . Assert ( items . Length == 13 ) ;
@@ -385,7 +359,6 @@ public Builder(
385359 T item13 )
386360 {
387361 length = 14 ;
388- #pragma warning disable IDE0300 // Simplify collection initialization
389362 items = new [ ]
390363 {
391364 item0 ,
@@ -403,7 +376,6 @@ public Builder(
403376 item12 ,
404377 item13
405378 } ;
406- #pragma warning restore IDE0300 // Simplify collection initialization
407379
408380 Debug . Assert ( length == 14 ) ;
409381 Debug . Assert ( items . Length == 14 ) ;
@@ -428,7 +400,6 @@ public Builder(
428400 T item14 )
429401 {
430402 length = 15 ;
431- #pragma warning disable IDE0300 // Simplify collection initialization
432403 items = new [ ]
433404 {
434405 item0 ,
@@ -447,7 +418,6 @@ public Builder(
447418 item13 ,
448419 item14
449420 } ;
450- #pragma warning restore IDE0300 // Simplify collection initialization
451421
452422 Debug . Assert ( length == 15 ) ;
453423 Debug . Assert ( items . Length == 15 ) ;
@@ -473,7 +443,6 @@ public Builder(
473443 T item15 )
474444 {
475445 length = 16 ;
476- #pragma warning disable IDE0300 // Simplify collection initialization
477446 items = new [ ]
478447 {
479448 item0 ,
@@ -493,7 +462,6 @@ public Builder(
493462 item14 ,
494463 item15
495464 } ;
496- #pragma warning restore IDE0300 // Simplify collection initialization
497465
498466 Debug . Assert ( length == 16 ) ;
499467 Debug . Assert ( items . Length == 16 ) ;
0 commit comments