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

◆ ReadXml()

void IXmlSerializable. System.Xml.Linq.XElement.ReadXml ( XmlReader reader)
inlineprivate

Implements System.Xml.Serialization.IXmlSerializable.

Definition at line 961 of file XElement.cs.

962 {
963 if (reader == null)
964 {
965 throw new ArgumentNullException("reader");
966 }
967 if (parent != null || annotations != null || content != null || lastAttr != null)
968 {
970 }
971 if (reader.MoveToContent() != XmlNodeType.Element)
972 {
973 throw new InvalidOperationException(System.SR.Format(System.SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType));
974 }
975 ReadElementFrom(reader, LoadOptions.None);
976 }
static string InvalidOperation_ExpectedNodeType
Definition SR.cs:48
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidOperation_DeserializeInstance
Definition SR.cs:38
Definition SR.cs:7
void ReadElementFrom(XmlReader r, LoadOptions o)
Definition XElement.cs:1133
XContainer parent
Definition XObject.cs:7

References System.Xml.Linq.XObject.annotations, System.Xml.Linq.XContainer.content, System.SR.Format(), System.SR.InvalidOperation_DeserializeInstance, System.SR.InvalidOperation_ExpectedNodeType, System.Xml.Linq.XElement.lastAttr, System.Xml.XmlReader.MoveToContent(), System.Xml.XmlReader.NodeType, System.Xml.Linq.XObject.parent, and System.Xml.Linq.XElement.ReadElementFrom().