Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XNodeDocumentOrderComparer.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Collections.Generic
;
3
4
namespace
System.Xml.Linq
;
5
6
public
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
{
18
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
Argument_MustBeDerivedFrom
,
typeof
(
XNode
)),
"x"
);
19
}
20
XNode
xNode2
= y
as
XNode
;
21
if
(
xNode2
==
null
&& y !=
null
)
22
{
23
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
Argument_MustBeDerivedFrom
,
typeof
(
XNode
)),
"y"
);
24
}
25
return
Compare
(
xNode
,
xNode2
);
26
}
27
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.Argument_MustBeDerivedFrom
static string Argument_MustBeDerivedFrom
Definition
SR.cs:28
System.SR
Definition
SR.cs:7
System.Xml.Linq.XNodeDocumentOrderComparer.Compare
int Compare(XNode? x, XNode? y)
Definition
XNodeDocumentOrderComparer.cs:8
System.Xml.Linq.XNodeDocumentOrderComparer
Definition
XNodeDocumentOrderComparer.cs:7
System.Xml.Linq.XNode.CompareDocumentOrder
static int CompareDocumentOrder(XNode? n1, XNode? n2)
Definition
XNode.cs:128
System.Xml.Linq.XNode
Definition
XNode.cs:11
System.Collections.Generic.IComparer.Compare
int Compare(T? x, T? y)
System.Collections.Generic.IComparer
Definition
IComparer.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections
Definition
BlockingCollection.cs:8
System.Xml.Linq
Definition
BaseUriAnnotation.cs:1
System.Xml.ExceptionType.ArgumentException
@ ArgumentException
System
Definition
BlockingCollection.cs:8
source
System.Private.Xml.Linq
System.Xml.Linq
XNodeDocumentOrderComparer.cs
Generated by
1.10.0