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

◆ ReadElementContentAsTimeSpan()

override TimeSpan System.Xml.XmlBinaryReader.ReadElementContentAsTimeSpan ( )
inlinevirtual

Reimplemented from System.Xml.XmlDictionaryReader.

Definition at line 266 of file XmlBinaryReader.cs.

267 {
268 if (base.Node.NodeType != XmlNodeType.Element)
269 {
271 }
272 if (CanOptimizeReadElementContent() && GetNodeType() == XmlBinaryNodeType.TimeSpanTextWithEndElement)
273 {
274 SkipNodeType();
275 TimeSpan result = base.BufferReader.ReadTimeSpan();
277 return result;
278 }
279 return base.ReadElementContentAsTimeSpan();
280 }
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().