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

◆ Sort< TKey, TValue >() [2/2]

static void System.MemoryExtensions.Sort< TKey, TValue > ( this Span< TKey > keys,
Span< TValue > items,
Comparison< TKey > comparison )
inlinestatic

Definition at line 1320 of file MemoryExtensions.cs.

1321 {
1322 if (comparison == null)
1323 {
1324 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparison);
1325 }
1326 if (keys.Length != items.Length)
1327 {
1328 ThrowHelper.ThrowArgumentException(ExceptionResource.Argument_SpansMustHaveSameLength);
1329 }
1330 if (keys.Length > 1)
1331 {
1333 }
1334 }

References System.comparison, System.keys, System.ThrowHelper.ThrowArgumentException(), and System.ThrowHelper.ThrowArgumentNullException().