Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NamespaceIterator.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
NamespaceIterator
8
{
9
private
XPathNavigator
_navCurrent
;
10
11
private
XmlNavigatorStack
_navStack
;
12
13
public
XPathNavigator
Current
=>
_navCurrent
;
14
15
public
void
Create
(
XPathNavigator
context)
16
{
17
_navStack
.
Reset
();
18
if
(!context.
MoveToFirstNamespace
(
XPathNamespaceScope
.All))
19
{
20
return
;
21
}
22
do
23
{
24
if
(context.
LocalName
.Length != 0 || context.
Value
.Length != 0)
25
{
26
_navStack
.
Push
(context.
Clone
());
27
}
28
}
29
while
(context.
MoveToNextNamespace
(
XPathNamespaceScope
.All));
30
context.
MoveToParent
();
31
}
32
33
public
bool
MoveNext
()
34
{
35
if
(
_navStack
.
IsEmpty
)
36
{
37
return
false
;
38
}
39
_navCurrent
=
_navStack
.
Pop
();
40
return
true
;
41
}
42
}
System.Xml.XPath.XPathItem.Value
string Value
Definition
XPathItem.cs:11
System.Xml.XPath.XPathNavigator.MoveToFirstNamespace
bool MoveToFirstNamespace(XPathNamespaceScope namespaceScope)
System.Xml.XPath.XPathNavigator.LocalName
string LocalName
Definition
XPathNavigator.cs:390
System.Xml.XPath.XPathNavigator.MoveToParent
bool MoveToParent()
System.Xml.XPath.XPathNavigator.MoveToNextNamespace
bool MoveToNextNamespace(XPathNamespaceScope namespaceScope)
System.Xml.XPath.XPathNavigator.Clone
object ICloneable. Clone()
Definition
XPathNavigator.cs:705
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.ComponentModel.EditorBrowsableState
EditorBrowsableState
Definition
EditorBrowsableState.cs:4
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Xml.XPath.XPathNamespaceScope
XPathNamespaceScope
Definition
XPathNamespaceScope.cs:4
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.Xml.Xsl.Runtime.NamespaceIterator.Create
void Create(XPathNavigator context)
Definition
NamespaceIterator.cs:15
System.Xml.Xsl.Runtime.NamespaceIterator._navStack
XmlNavigatorStack _navStack
Definition
NamespaceIterator.cs:11
System.Xml.Xsl.Runtime.NamespaceIterator.Current
XPathNavigator Current
Definition
NamespaceIterator.cs:13
System.Xml.Xsl.Runtime.NamespaceIterator._navCurrent
XPathNavigator _navCurrent
Definition
NamespaceIterator.cs:9
System.Xml.Xsl.Runtime.NamespaceIterator.MoveNext
bool MoveNext()
Definition
NamespaceIterator.cs:33
System.Xml.Xsl.Runtime.NamespaceIterator
Definition
NamespaceIterator.cs:8
System.Xml.Xsl.Runtime.XmlNavigatorStack.IsEmpty
bool IsEmpty
Definition
XmlNavigatorStack.cs:11
System.Xml.Xsl.Runtime.XmlNavigatorStack.Push
void Push(XPathNavigator nav)
Definition
XmlNavigatorStack.cs:13
System.Xml.Xsl.Runtime.XmlNavigatorStack.Pop
XPathNavigator Pop()
Definition
XmlNavigatorStack.cs:28
System.Xml.Xsl.Runtime.XmlNavigatorStack.Reset
void Reset()
Definition
XmlNavigatorStack.cs:38
System.Xml.Xsl.Runtime.XmlNavigatorStack
Definition
XmlNavigatorStack.cs:6
source
System.Private.Xml
System.Xml.Xsl.Runtime
NamespaceIterator.cs
Generated by
1.10.0