Skip to content

Commit 674bafb

Browse files
authored
Reduce magic numbers in FrugalList.cs (#10204)
1 parent a197ead commit 674bafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -340,7 +340,7 @@ public void Promote(SingleItemList<T> oldList)
340340

341341
public override T[] ToArray()
342342
{
343-
T[] array = new T[1];
343+
T[] array = new T[SIZE];
344344
array[0] = _loneEntry;
345345
return array;
346346
}

0 commit comments

Comments
 (0)