From 47317fc671589ac48bf66dd15fe4cfd7d2dc6674 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Mon, 12 Apr 2021 20:07:06 +0200 Subject: [PATCH] Call used comparer directly instead of non-generic Compare wrapper (#51001) --- src/libraries/System.Private.CoreLib/src/System/Type.Enum.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Type.Enum.cs b/src/libraries/System.Private.CoreLib/src/System/Type.Enum.cs index a025edb..8915fc4 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Type.Enum.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Type.Enum.cs @@ -124,7 +124,7 @@ namespace System // Insertion Sort these values in ascending order. // We use this O(n^2) algorithm, but it turns out that most of the time the elements are already in sorted order and // the common case performance will be faster than quick sorting this. - IComparer comparer = Comparer.Default; + Comparer comparer = Comparer.Default; for (int i = 1; i < values.Length; i++) { int j = i; -- 2.7.4