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

◆ ReadContentAsString() [1/4]

override string System.Xml.XmlBaseReader.ReadContentAsString ( )
inlinevirtualinherited

Reimplemented from System.Xml.XmlReader.

Definition at line 2623 of file XmlBaseReader.cs.

2624 {
2625 XmlNode node = Node;
2626 if (node.IsAtomicValue)
2627 {
2628 string text;
2629 if (_value != null)
2630 {
2631 text = _value;
2632 if (node.AttributeText == null)
2633 {
2634 _value = string.Empty;
2635 }
2636 }
2637 else
2638 {
2639 text = node.Value.GetString();
2640 SkipValue(node);
2641 if (text.Length > _quotas.MaxStringContentLength)
2642 {
2643 XmlExceptionHelper.ThrowMaxStringContentLengthExceeded(this, _quotas.MaxStringContentLength);
2644 }
2645 }
2646 return text;
2647 }
2649 }
readonly XmlDictionaryReaderQuotas _quotas
override string ReadContentAsString()
void SkipValue(XmlNode node)

References System.Xml.XmlBaseReader._quotas, System.Xml.XmlBaseReader._value, System.Xml.Dictionary, System.Xml.XmlDictionaryReaderQuotas.MaxStringContentLength, System.Xml.XmlBaseReader.Node, System.Xml.XmlBaseReader.ReadContentAsString(), System.Xml.XmlBaseReader.SkipValue(), System.text, and System.Xml.XmlExceptionHelper.ThrowMaxStringContentLengthExceeded().

Referenced by System.Xml.XmlBaseReader.ReadContentAs(), System.Xml.XmlBaseReader.ReadContentAsBoolean(), System.Xml.XmlBaseReader.ReadContentAsDateTime(), System.Runtime.Serialization.Json.XmlJsonReader.ReadContentAsDecimal(), System.Xml.XmlBaseReader.ReadContentAsDecimal(), System.Xml.XmlBaseReader.ReadContentAsDouble(), System.Xml.XmlBaseReader.ReadContentAsFloat(), System.Xml.XmlBaseReader.ReadContentAsGuid(), System.Runtime.Serialization.Json.XmlJsonReader.ReadContentAsInt(), System.Xml.XmlBaseReader.ReadContentAsInt(), System.Runtime.Serialization.Json.XmlJsonReader.ReadContentAsLong(), System.Xml.XmlBaseReader.ReadContentAsLong(), System.Xml.XmlBaseReader.ReadContentAsObject(), System.Xml.XmlBaseReader.ReadContentAsString(), System.Xml.XmlBaseReader.ReadContentAsTimeSpan(), System.Xml.XmlBaseReader.ReadContentAsUniqueId(), and System.Xml.XmlBaseReader.ReadElementContentAsString().