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

◆ Load() [8/8]

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

Definition at line 409 of file XElement.cs.

410 {
411 if (reader == null)
412 {
413 throw new ArgumentNullException("reader");
414 }
415 if (reader.MoveToContent() != XmlNodeType.Element)
416 {
417 throw new InvalidOperationException(System.SR.Format(System.SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType));
418 }
419 XElement result = new XElement(reader, options);
420 reader.MoveToContent();
421 if (!reader.EOF)
422 {
424 }
425 return result;
426 }
static string InvalidOperation_ExpectedNodeType
Definition SR.cs:48
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidOperation_ExpectedEndOfFile
Definition SR.cs:44
Definition SR.cs:7

References System.Xml.Linq.XElement.XElement(), System.Xml.XmlReader.EOF, System.SR.Format(), System.SR.InvalidOperation_ExpectedEndOfFile, System.SR.InvalidOperation_ExpectedNodeType, System.Xml.XmlReader.MoveToContent(), System.Xml.XmlReader.NodeType, and System.options.