Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XNodeDocumentOrderComparer.cs
Go to the documentation of this file.
3
4namespace System.Xml.Linq;
5
6public sealed class XNodeDocumentOrderComparer : IComparer, IComparer<XNode?>
7{
8 public int Compare(XNode? x, XNode? y)
9 {
10 return XNode.CompareDocumentOrder(x, y);
11 }
12
13 int IComparer.Compare(object x, object y)
14 {
15 XNode xNode = x as XNode;
16 if (xNode == null && x != null)
17 {
19 }
20 XNode xNode2 = y as XNode;
21 if (xNode2 == null && y != null)
22 {
24 }
25 return Compare(xNode, xNode2);
26 }
27}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_MustBeDerivedFrom
Definition SR.cs:28
Definition SR.cs:7
static int CompareDocumentOrder(XNode? n1, XNode? n2)
Definition XNode.cs:128