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