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

◆ Sort< TKey, TValue, TComparer >()

static void System.MemoryExtensions.Sort< TKey, TValue, TComparer > ( this Span< TKey > keys,
Span< TValue > items,
TComparer comparer )
inlinestatic
Type Constraints
TComparer :IComparer<TKey> 

Definition at line 1308 of file MemoryExtensions.cs.

1309 {
1310 if (keys.Length != items.Length)
1311 {
1312 ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_SpansMustHaveSameLength);
1313 }
1314 if (keys.Length > 1)
1315 {
1316 ArraySortHelper<TKey, TValue>.Default.Sort(keys, items, comparer);
1317 }
1318 }

References System.comparer, System.keys, and System.ThrowHelper.ThrowArgumentException().