Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeRoy <michaelde@unity3d.com>2017-08-08 05:26:11 +0300
committerMarek Safar <marek.safar@gmail.com>2017-08-08 23:26:10 +0300
commitbdb9f21dad9c3429e4b8965eea601dbc0f80ae98 (patch)
tree82ef42247720b76dbf3aa39dce255ad75e13c429 /mcs/class/referencesource
parentfd708a1ab67080b80ff1abca95e328177e535ced (diff)
Call array sort function that takes comparison instead rather than allocating for a wrapper struct
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r--mcs/class/referencesource/mscorlib/system/collections/generic/list.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs b/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs
index f7d606e22ef..f275edee821 100644
--- a/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs
+++ b/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs
@@ -997,8 +997,7 @@ namespace System.Collections.Generic {
Contract.EndContractBlock();
if( _size > 0) {
- IComparer<T> comparer = new Array.FunctorComparer<T>(comparison);
- Array.Sort(_items, 0, _size, comparer);
+ ArraySortHelper<T>.Sort(_items, 0, _size, comparison);
}
}