Skip to content

Commit

Permalink
Reduce magic numbers in FrugalList.cs (#10204)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi authored Dec 27, 2024
1 parent a197ead commit 674bafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.DotNet.Wpf/src/Shared/MS/Utility/FrugalList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

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

public override T[] ToArray()
{
T[] array = new T[1];
T[] array = new T[SIZE];
array[0] = _loneEntry;
return array;
}
Expand Down

0 comments on commit 674bafb

Please # to comment.