Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IdIterator.cs
Go to the documentation of this file.
1
using
System.ComponentModel
;
2
using
System.Xml.XPath
;
3
4
namespace
System.Xml.Xsl.Runtime
;
5
6
[
EditorBrowsable
(
EditorBrowsableState
.Never)]
7
public
struct
IdIterator
8
{
9
private
XPathNavigator
_navCurrent
;
10
11
private
string
[]
_idrefs
;
12
13
private
int
_idx
;
14
15
public
XPathNavigator
Current
=>
_navCurrent
;
16
17
public
void
Create
(
XPathNavigator
context,
string
value
)
18
{
19
_navCurrent
=
XmlQueryRuntime
.
SyncToNavigator
(
_navCurrent
, context);
20
_idrefs
=
XmlConvert
.
SplitString
(
value
);
21
_idx
= -1;
22
}
23
24
public
bool
MoveNext
()
25
{
26
do
27
{
28
_idx
++;
29
if
(
_idx
>=
_idrefs
.Length)
30
{
31
return
false
;
32
}
33
}
34
while
(!
_navCurrent
.
MoveToId
(
_idrefs
[
_idx
]));
35
return
true
;
36
}
37
}
System.Xml.XPath.XPathNavigator.MoveToId
bool MoveToId(string id)
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.XmlConvert.SplitString
static string[] SplitString(string value)
Definition
XmlConvert.cs:1228
System.Xml.XmlConvert
Definition
XmlConvert.cs:11
System.Xml.Xsl.Runtime.XmlQueryRuntime.SyncToNavigator
static XPathNavigator SyncToNavigator(XPathNavigator navigatorThis, XPathNavigator navigatorThat)
Definition
XmlQueryRuntime.cs:707
System.Xml.Xsl.Runtime.XmlQueryRuntime
Definition
XmlQueryRuntime.cs:16
System.ComponentModel.EditorBrowsableState
EditorBrowsableState
Definition
EditorBrowsableState.cs:4
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.Xml.Xsl.Runtime.IdIterator._idx
int _idx
Definition
IdIterator.cs:13
System.Xml.Xsl.Runtime.IdIterator._idrefs
string[] _idrefs
Definition
IdIterator.cs:11
System.Xml.Xsl.Runtime.IdIterator.Current
XPathNavigator Current
Definition
IdIterator.cs:15
System.Xml.Xsl.Runtime.IdIterator._navCurrent
XPathNavigator _navCurrent
Definition
IdIterator.cs:9
System.Xml.Xsl.Runtime.IdIterator.Create
void Create(XPathNavigator context, string value)
Definition
IdIterator.cs:17
System.Xml.Xsl.Runtime.IdIterator.MoveNext
bool MoveNext()
Definition
IdIterator.cs:24
System.Xml.Xsl.Runtime.IdIterator
Definition
IdIterator.cs:8
source
System.Private.Xml
System.Xml.Xsl.Runtime
IdIterator.cs
Generated by
1.10.0