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

◆ ReadElementContentAsDecimal() [1/2]

override decimal System.Xml.XmlBinaryReader.ReadElementContentAsDecimal ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 234 of file XmlBinaryReader.cs.

235 {
236 if (base.Node.NodeType != XmlNodeType.Element)
237 {
239 }
240 if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DecimalTextWithEndElement)
241 {
242 SkipNodeType();
243 decimal result = base.BufferReader.ReadDecimal();
245 return result;
246 }
247 return base.ReadElementContentAsDecimal();
248 }
XmlBinaryNodeType GetNodeType()

References System.Xml.XmlBinaryReader.CanOptimizeReadElementContent(), System.Xml.Dictionary, System.Xml.XmlBinaryReader.GetNodeType(), System.Xml.XmlDictionaryReader.MoveToStartElement(), System.Xml.XmlBinaryReader.ReadTextWithEndElement(), and System.Xml.XmlBinaryReader.SkipNodeType().