Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Sort() [2/5]

void System.Collections.Generic.ArraySortHelper< TKey, TValue >.Sort ( Span< T > keys,
IComparer< T > comparer )
inline

Definition at line 24 of file ArraySortHelper.cs.

25 {
26 try
27 {
28 if (comparer == null)
29 {
30 comparer = Comparer<T>.Default;
31 }
33 }
34 catch (IndexOutOfRangeException)
35 {
36 ThrowHelper.ThrowArgumentException_BadComparer(comparer);
37 }
38 catch (Exception e)
39 {
40 ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
41 }
42 }
static void IntrospectiveSort(Span< T > keys, Comparison< T > comparer)

References System.comparer, System.Collections.Generic.ArraySortHelper< TKey, TValue >.IntrospectiveSort(), System.keys, System.ThrowHelper.ThrowArgumentException_BadComparer(), and System.ThrowHelper.ThrowInvalidOperationException().