Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StructuralComparer.cs
Go to the documentation of this file.
2
3namespace System.Collections;
4
5internal sealed class StructuralComparer : IComparer
6{
7 public int Compare(object x, object y)
8 {
9 if (x == null)
10 {
11 if (y != null)
12 {
13 return -1;
14 }
15 return 0;
16 }
17 if (y == null)
18 {
19 return 1;
20 }
22 {
23 return structuralComparable.CompareTo(y, this);
24 }
25 return Comparer<object>.Default.Compare(x, y);
26 }
27}