Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetValue()

string System.Security.Cryptography.XmlKeyHelper.ParseState.GetValue ( string localName)
inlinepackage

Definition at line 87 of file XmlKeyHelper.cs.

88 {
89 if (_enumerable == null)
90 {
91 return null;
92 }
93 if (_enumerator == null)
94 {
96 }
97 int index = _index;
98 int num = index;
99 if (!_enumerator.MoveNext())
100 {
101 num = -1;
103 if (!_enumerator.MoveNext())
104 {
105 _enumerable = null;
106 return null;
107 }
108 }
109 for (num++; num != index; num++)
110 {
111 string localName2 = Functions.GetLocalName(_enumerator.Current);
112 if (localName == localName2)
113 {
114 _index = num;
115 return Functions.GetValue(_enumerator.Current);
116 }
117 if (!_enumerator.MoveNext())
118 {
119 num = -1;
120 if (index < 0)
121 {
122 _enumerator = null;
123 return null;
124 }
126 if (!_enumerator.MoveNext())
127 {
128 _enumerable = null;
129 return null;
130 }
131 }
132 }
133 return null;
134 }

References System.Security.Cryptography.XmlKeyHelper.ParseState._enumerable, System.Security.Cryptography.XmlKeyHelper.ParseState._enumerator, System.Security.Cryptography.XmlKeyHelper.ParseState._index, System.Collections.IEnumerator.Current, System.Collections.IEnumerable.GetEnumerator(), System.Security.Cryptography.XmlKeyHelper.ParseState.Functions.GetLocalName(), System.Security.Cryptography.XmlKeyHelper.ParseState.Functions.GetValue(), System.index, and System.Collections.IEnumerator.MoveNext().

Referenced by System.Security.Cryptography.XmlKeyHelper.ParseState.HasElement().