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

◆ Compare() [1/2]

int System.Linq.Parallel.PairComparer< T, U >.Compare ( Pair< T, U > x,
Pair< T, U > y )
inline

Definition at line 17 of file PairComparer.cs.

18 {
19 int num = _comparer1.Compare(x.First, y.First);
20 if (num != 0)
21 {
22 return num;
23 }
24 if (_comparer2 == null)
25 {
26 return num;
27 }
28 return _comparer2.Compare(x.Second, y.Second);
29 }
readonly IComparer< T > _comparer1
readonly IComparer< U > _comparer2

References System.Linq.Parallel.PairComparer< T, U >._comparer1, System.Linq.Parallel.PairComparer< T, U >._comparer2, and System.Collections.Generic.IComparer< in T >.Compare().