Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSortKey.cs
Go to the documentation of this file.
1
namespace
System.Xml.Xsl.Runtime
;
2
3
internal
abstract
class
XmlSortKey
:
IComparable
4
{
5
private
int
_priority
;
6
7
private
XmlSortKey
_nextKey
;
8
9
public
int
Priority
10
{
11
set
12
{
13
for
(
XmlSortKey
xmlSortKey
=
this
;
xmlSortKey
!=
null
;
xmlSortKey
=
xmlSortKey
.
_nextKey
)
14
{
15
xmlSortKey._priority
=
value
;
16
}
17
}
18
}
19
20
public
XmlSortKey
AddSortKey
(
XmlSortKey
sortKey
)
21
{
22
if
(
_nextKey
!=
null
)
23
{
24
_nextKey
.
AddSortKey
(
sortKey
);
25
}
26
else
27
{
28
_nextKey
=
sortKey
;
29
}
30
return
this
;
31
}
32
33
protected
int
BreakSortingTie
(
XmlSortKey
that
)
34
{
35
if
(
_nextKey
!=
null
)
36
{
37
return
_nextKey
.
CompareTo
(
that
._nextKey);
38
}
39
if
(
_priority
>=
that
._priority)
40
{
41
return
1;
42
}
43
return
-1;
44
}
45
46
protected
int
CompareToEmpty
(
object
obj
)
47
{
48
XmlEmptySortKey
xmlEmptySortKey
=
obj
as
XmlEmptySortKey
;
49
if
(!
xmlEmptySortKey
.IsEmptyGreatest)
50
{
51
return
1;
52
}
53
return
-1;
54
}
55
56
public
abstract
int
CompareTo
(
object
that
);
57
}
System.Xml.Xsl.Runtime.XmlEmptySortKey
Definition
XmlEmptySortKey.cs:4
System.Xml.Xsl.Runtime.XmlSortKey.AddSortKey
XmlSortKey AddSortKey(XmlSortKey sortKey)
Definition
XmlSortKey.cs:20
System.Xml.Xsl.Runtime.XmlSortKey.BreakSortingTie
int BreakSortingTie(XmlSortKey that)
Definition
XmlSortKey.cs:33
System.Xml.Xsl.Runtime.XmlSortKey.Priority
int Priority
Definition
XmlSortKey.cs:10
System.Xml.Xsl.Runtime.XmlSortKey.CompareTo
int CompareTo(object that)
System.Xml.Xsl.Runtime.XmlSortKey._priority
int _priority
Definition
XmlSortKey.cs:5
System.Xml.Xsl.Runtime.XmlSortKey._nextKey
XmlSortKey _nextKey
Definition
XmlSortKey.cs:7
System.Xml.Xsl.Runtime.XmlSortKey.CompareToEmpty
int CompareToEmpty(object obj)
Definition
XmlSortKey.cs:46
System.Xml.Xsl.Runtime.XmlSortKey
Definition
XmlSortKey.cs:4
System.IComparable
Definition
IComparable.cs:8
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.ExceptionArgument.obj
@ obj
source
System.Private.Xml
System.Xml.Xsl.Runtime
XmlSortKey.cs
Generated by
1.10.0