Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XNodeEqualityComparer.cs
Go to the documentation of this file.
3
4namespace System.Xml.Linq;
5
7{
8 public bool Equals(XNode? x, XNode? y)
9 {
10 return XNode.DeepEquals(x, y);
11 }
12
13 public int GetHashCode(XNode obj)
14 {
15 return obj?.GetDeepHashCode() ?? 0;
16 }
17
18 bool IEqualityComparer.Equals(object x, object y)
19 {
20 XNode xNode = x as XNode;
21 if (xNode == null && x != null)
22 {
24 }
25 XNode xNode2 = y as XNode;
26 if (xNode2 == null && y != null)
27 {
29 }
30 return Equals(xNode, xNode2);
31 }
32
34 {
36 if (xNode == null && obj != null)
37 {
39 }
40 return GetHashCode(xNode);
41 }
42}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_MustBeDerivedFrom
Definition SR.cs:28
Definition SR.cs:7
static bool DeepEquals(XNode? n1, XNode? n2)
Definition XNode.cs:426