Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Value
override
string
MS.Internal.Xml.Cache.XPathDocumentNavigator.Value
get
Definition at line
20
of file
XPathDocumentNavigator.cs
.
21
{
22
get
23
{
24
string
value
=
_pageCurrent
[
_idxCurrent
].
Value
;
25
if
(value !=
null
)
26
{
27
return
value
;
28
}
29
if
(
_idxParent
!= 0)
30
{
31
return
_pageParent
[
_idxParent
].
Value
;
32
}
33
string
text
=
string
.Empty;
34
StringBuilder
stringBuilder
=
null
;
35
XPathNode[]
pageNode
;
36
XPathNode[]
pageCurrent
= (
pageNode
=
_pageCurrent
);
37
int
idxNode
;
38
int
idxCurrent
= (
idxNode
=
_idxCurrent
);
39
if
(!XPathNodeHelper.GetNonDescendant(
ref
pageNode
,
ref
idxNode
))
40
{
41
pageNode
=
null
;
42
idxNode
= 0;
43
}
44
while
(XPathNodeHelper.GetTextFollowing(
ref
pageCurrent
,
ref
idxCurrent
,
pageNode
,
idxNode
))
45
{
46
value
=
pageCurrent
[
idxCurrent
].Value;
47
if
(
text
.Length == 0)
48
{
49
text
=
value
;
50
continue
;
51
}
52
if
(
stringBuilder
==
null
)
53
{
54
stringBuilder
=
new
StringBuilder
();
55
stringBuilder
.Append(text);
56
}
57
stringBuilder
.Append(value);
58
}
59
if
(
stringBuilder
==
null
)
60
{
61
return
text
;
62
}
63
return
stringBuilder
.ToString();
64
}
65
}
MS.Internal.Xml.Cache.XPathDocumentNavigator._idxCurrent
int _idxCurrent
Definition
XPathDocumentNavigator.cs:14
MS.Internal.Xml.Cache.XPathDocumentNavigator._pageParent
XPathNode[] _pageParent
Definition
XPathDocumentNavigator.cs:12
MS.Internal.Xml.Cache.XPathDocumentNavigator._pageCurrent
XPathNode[] _pageCurrent
Definition
XPathDocumentNavigator.cs:10
MS.Internal.Xml.Cache.XPathDocumentNavigator._idxParent
int _idxParent
Definition
XPathDocumentNavigator.cs:16
System.Text.StringBuilder
Definition
StringBuilder.cs:14
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.text
@ text
System.ExceptionArgument.value
@ value
MS.Internal.Xml.Cache.XPathNode.Value
string Value
Definition
XPathNode.cs:114
MS
Internal
Xml
Cache
XPathDocumentNavigator
Generated by
1.10.0