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

◆ ReadStartElement() [3/3]

virtual void System.Xml.XmlReader.ReadStartElement ( string name)
inlinevirtualinherited

Reimplemented in System.Xml.XmlBaseReader, System.Xml.XmlDictionaryReader.XmlWrappedReader, and System.Xml.XmlAsyncCheckReader.

Definition at line 638 of file XmlReader.cs.

639 {
640 if (MoveToContent() != XmlNodeType.Element)
641 {
642 throw new XmlException(System.SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo);
643 }
644 if (Name == name)
645 {
646 Read();
647 return;
648 }
649 throw new XmlException(System.SR.Xml_ElementNotFound, name, this as IXmlLineInfo);
650 }
static string Xml_InvalidNodeType
Definition SR.cs:88
static string Xml_ElementNotFound
Definition SR.cs:100
Definition SR.cs:7
virtual XmlNodeType MoveToContent()
Definition XmlReader.cs:604
XmlNodeType NodeType
Definition XmlReader.cs:62
virtual string Name
Definition XmlReader.cs:65

References System.Xml.Dictionary, System.Xml.XmlReader.MoveToContent(), System.Xml.XmlReader.Name, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.SR.Xml_ElementNotFound, System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.