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

◆ ReadElementContentAsDateTime() [1/2]

override DateTime System.Xml.XmlBinaryReader.ReadElementContentAsDateTime ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 250 of file XmlBinaryReader.cs.

251 {
252 if (base.Node.NodeType != XmlNodeType.Element)
253 {
255 }
256 if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.DateTimeTextWithEndElement)
257 {
258 SkipNodeType();
259 DateTime result = base.BufferReader.ReadDateTime();
261 return result;
262 }
263 return base.ReadElementContentAsDateTime();
264 }
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().