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

◆ ReadElementContentAsDouble() [1/2]

override double System.Xml.XmlBinaryReader.ReadElementContentAsDouble ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 218 of file XmlBinaryReader.cs.

219 {
220 if (base.Node.NodeType != XmlNodeType.Element)
221 {
223 }
224 if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DoubleTextWithEndElement)
225 {
226 SkipNodeType();
227 double result = base.BufferReader.ReadDouble();
229 return result;
230 }
231 return base.ReadElementContentAsDouble();
232 }
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().