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

◆ ReadString()

override string System.Xml.Xsl.XsltOld.ReaderOutput.ReadString ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 311 of file ReaderOutput.cs.

312 {
313 string text = string.Empty;
314 if (NodeType == XmlNodeType.Element || NodeType == XmlNodeType.Attribute || _currentInfo == _attributeValue)
315 {
317 {
318 return text;
319 }
320 if (!Read())
321 {
323 }
324 }
326 bool flag = true;
327 while (true)
328 {
329 XmlNodeType nodeType = NodeType;
330 if (nodeType != XmlNodeType.Text && (uint)(nodeType - 13) > 1u)
331 {
332 break;
333 }
334 if (flag)
335 {
336 text = Value;
337 flag = false;
338 }
339 else
340 {
341 if (stringBuilder == null)
342 {
344 }
345 stringBuilder.Append(Value);
346 }
347 if (!Read())
348 {
350 }
351 }
352 if (stringBuilder != null)
353 {
354 return stringBuilder.ToString();
355 }
356 return text;
357 }
static string Xml_InvalidOperation
Definition SR.cs:18
Definition SR.cs:7

References System.Xml.Xsl.XsltOld.ReaderOutput._attributeValue, System.Xml.Xsl.XsltOld.ReaderOutput._currentInfo, System.Xml.Xsl.XsltOld.ReaderOutput._mainNode, System.Xml.Dictionary, System.Xml.Xsl.XsltOld.BuilderInfo.IsEmptyTag, System.Xml.Xsl.XsltOld.ReaderOutput.NodeType, System.Xml.Xsl.XsltOld.ReaderOutput.Read(), System.text, System.Xml.Xsl.XsltOld.ReaderOutput.Value, and System.SR.Xml_InvalidOperation.