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

◆ Equals() [1/2]

new bool System.Collections.StructuralEqualityComparer.Equals ( object x,
object y )
inline

Definition at line 5 of file StructuralEqualityComparer.cs.

6 {
7 if (x != null)
8 {
9 if (x is IStructuralEquatable structuralEquatable)
10 {
11 return structuralEquatable.Equals(y, this);
12 }
13 if (y != null)
14 {
15 return x.Equals(y);
16 }
17 return false;
18 }
19 if (y != null)
20 {
21 return false;
22 }
23 return true;
24 }