Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Key.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Xml.XPath
;
3
4
namespace
System.Xml.Xsl.XsltOld
;
5
6
internal
sealed
class
Key
7
{
8
private
readonly
XmlQualifiedName
_name
;
9
10
private
readonly
int
_matchKey
;
11
12
private
readonly
int
_useKey
;
13
14
private
ArrayList
_keyNodes
;
15
16
public
XmlQualifiedName
Name
=>
_name
;
17
18
public
int
MatchKey
=>
_matchKey
;
19
20
public
int
UseKey
=>
_useKey
;
21
22
public
Key
(
XmlQualifiedName
name,
int
matchkey
,
int
usekey
)
23
{
24
_name
= name;
25
_matchKey
=
matchkey
;
26
_useKey
=
usekey
;
27
_keyNodes
=
null
;
28
}
29
30
public
void
AddKey
(
XPathNavigator
root,
Hashtable
table)
31
{
32
if
(
_keyNodes
==
null
)
33
{
34
_keyNodes
=
new
ArrayList
();
35
}
36
_keyNodes
.
Add
(
new
DocumentKeyList
(root, table));
37
}
38
39
public
Hashtable
GetKeys
(
XPathNavigator
root)
40
{
41
if
(
_keyNodes
!=
null
)
42
{
43
for
(
int
i = 0; i <
_keyNodes
.
Count
; i++)
44
{
45
if
(((
DocumentKeyList
)
_keyNodes
[i]).RootNav.IsSamePosition(root))
46
{
47
return
((
DocumentKeyList
)
_keyNodes
[i]).KeyTable;
48
}
49
}
50
}
51
return
null
;
52
}
53
54
public
Key
Clone
()
55
{
56
return
new
Key
(
_name
,
_matchKey
,
_useKey
);
57
}
58
}
System.Collections.ArrayList.Add
virtual int Add(object? value)
Definition
ArrayList.cs:2302
System.Collections.ArrayList.Count
virtual int Count
Definition
ArrayList.cs:2225
System.Collections.ArrayList
Definition
ArrayList.cs:11
System.Collections.Hashtable
Definition
Hashtable.cs:13
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.XmlQualifiedName
Definition
XmlQualifiedName.cs:6
System.Xml.Xsl.XsltOld.Key.Clone
Key Clone()
Definition
Key.cs:54
System.Xml.Xsl.XsltOld.Key._name
readonly XmlQualifiedName _name
Definition
Key.cs:8
System.Xml.Xsl.XsltOld.Key.MatchKey
int MatchKey
Definition
Key.cs:18
System.Xml.Xsl.XsltOld.Key._matchKey
readonly int _matchKey
Definition
Key.cs:10
System.Xml.Xsl.XsltOld.Key.AddKey
void AddKey(XPathNavigator root, Hashtable table)
Definition
Key.cs:30
System.Xml.Xsl.XsltOld.Key._keyNodes
ArrayList _keyNodes
Definition
Key.cs:14
System.Xml.Xsl.XsltOld.Key.Key
Key(XmlQualifiedName name, int matchkey, int usekey)
Definition
Key.cs:22
System.Xml.Xsl.XsltOld.Key._useKey
readonly int _useKey
Definition
Key.cs:12
System.Xml.Xsl.XsltOld.Key.GetKeys
Hashtable GetKeys(XPathNavigator root)
Definition
Key.cs:39
System.Xml.Xsl.XsltOld.Key.Name
XmlQualifiedName Name
Definition
Key.cs:16
System.Xml.Xsl.XsltOld.Key.UseKey
int UseKey
Definition
Key.cs:20
System.Xml.Xsl.XsltOld.Key
Definition
Key.cs:7
System.Collections
Definition
BlockingCollection.cs:8
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.XsltOld
Definition
IXsltDebugger.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.Xml.Xsl.XsltOld.DocumentKeyList
Definition
DocumentKeyList.cs:7
source
System.Private.Xml
System.Xml.Xsl.XsltOld
Key.cs
Generated by
1.10.0