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

◆ Load() [8/8]

static XDocument System.Xml.Linq.XDocument.Load ( XmlReader reader,
LoadOptions options )
inlinestatic

Definition at line 113 of file XDocument.cs.

114 {
115 if (reader == null)
116 {
117 throw new ArgumentNullException("reader");
118 }
119 if (reader.ReadState == ReadState.Initial)
120 {
121 reader.Read();
122 }
124 xDocument.ReadContentFrom(reader, options);
125 if (!reader.EOF)
126 {
128 }
129 if (xDocument.Root == null)
130 {
132 }
133 return xDocument;
134 }
static string InvalidOperation_MissingRoot
Definition SR.cs:56
static string InvalidOperation_ExpectedEndOfFile
Definition SR.cs:44
Definition SR.cs:7
static XDocument InitLoad(XmlReader reader, LoadOptions options)
Definition XDocument.cs:168

References System.Xml.Dictionary, System.Xml.XmlReader.EOF, System.Xml.Linq.XDocument.InitLoad(), System.SR.InvalidOperation_ExpectedEndOfFile, System.SR.InvalidOperation_MissingRoot, System.options, System.Xml.XmlReader.Read(), and System.Xml.XmlReader.ReadState.