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

◆ Sort() [1/5]

static void System.Collections.Generic.ArraySortHelper< TKey, TValue >.Sort ( Span< T > keys,
Comparison< T > comparer )
inlinestaticpackage

Definition at line 61 of file ArraySortHelper.cs.

62 {
63 try
64 {
66 }
67 catch (IndexOutOfRangeException)
68 {
69 ThrowHelper.ThrowArgumentException_BadComparer(comparer);
70 }
71 catch (Exception e)
72 {
73 ThrowHelper.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
74 }
75 }
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().