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

◆ Compare()

override int System.Collections.Generic.GenericComparer< T >.Compare ( T? x,
T? y )
inline

Implements System.Collections.Generic.IComparer< in T >.

Definition at line 11 of file GenericComparer.cs.

12 {
13 if (x != null)
14 {
15 if (y != null)
16 {
17 return x.CompareTo(y);
18 }
19 return 1;
20 }
21 if (y != null)
22 {
23 return -1;
24 }
25 return 0;
26 }