Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlIntSortKey.cs
Go to the documentation of this file.
1
namespace
System.Xml.Xsl.Runtime
;
2
3
internal
sealed
class
XmlIntSortKey
:
XmlSortKey
4
{
5
private
readonly
int
_intVal
;
6
7
public
XmlIntSortKey
(
int
value
,
XmlCollation
collation
)
8
{
9
_intVal
= (
collation.DescendingOrder
? (
~value
) :
value
);
10
}
11
12
public
override
int
CompareTo
(
object
obj
)
13
{
14
if
(!(
obj
is
XmlIntSortKey
xmlIntSortKey
))
15
{
16
return
CompareToEmpty
(
obj
);
17
}
18
if
(
_intVal
==
xmlIntSortKey
._intVal)
19
{
20
return
BreakSortingTie
(
xmlIntSortKey
);
21
}
22
if
(
_intVal
>=
xmlIntSortKey
._intVal)
23
{
24
return
1;
25
}
26
return
-1;
27
}
28
}
System.Xml.Xsl.Runtime.XmlCollation
Definition
XmlCollation.cs:9
System.Xml.Xsl.Runtime.XmlIntSortKey.CompareTo
override int CompareTo(object obj)
Definition
XmlIntSortKey.cs:12
System.Xml.Xsl.Runtime.XmlIntSortKey.XmlIntSortKey
XmlIntSortKey(int value, XmlCollation collation)
Definition
XmlIntSortKey.cs:7
System.Xml.Xsl.Runtime.XmlIntSortKey._intVal
readonly int _intVal
Definition
XmlIntSortKey.cs:5
System.Xml.Xsl.Runtime.XmlIntSortKey
Definition
XmlIntSortKey.cs:4
System.Xml.Xsl.Runtime.XmlSortKey.BreakSortingTie
int BreakSortingTie(XmlSortKey that)
Definition
XmlSortKey.cs:33
System.Xml.Xsl.Runtime.XmlSortKey.CompareToEmpty
int CompareToEmpty(object obj)
Definition
XmlSortKey.cs:46
System.Xml.Xsl.Runtime.XmlSortKey
Definition
XmlSortKey.cs:4
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
XmlIntSortKey.cs
Generated by
1.10.0