未验证 提交 47317fc6 编写于 作者: M Marek Safar 提交者: GitHub

Call used comparer directly instead of non-generic Compare wrapper (#51001)

上级 19f0ea7f
......@@ -124,7 +124,7 @@ private void GetEnumData(out string[] enumNames, out Array enumValues)
// 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<object>.Default;
Comparer comparer = Comparer.Default;
for (int i = 1; i < values.Length; i++)
{
int j = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册