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

◆ CreateNavigator() [2/2]

static XPathNavigator System.Xml.XPath.Extensions.CreateNavigator ( this XNode node,
XmlNameTable? nameTable )
inlinestatic

Definition at line 14 of file Extensions.cs.

15 {
16 if (node == null)
17 {
18 throw new ArgumentNullException("node");
19 }
21 {
22 throw new ArgumentException(System.SR.Format(System.SR.Argument_CreateNavigator, XmlNodeType.DocumentType));
23 }
24 if (node is XText xText)
25 {
26 if (xText.GetParent() is XDocument)
27 {
28 throw new ArgumentException(System.SR.Format(System.SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
29 }
31 }
32 return new XNodeNavigator(node, nameTable);
33 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_CreateNavigator
Definition SR.cs:68
Definition SR.cs:7
static XText CalibrateText(XText n)
Definition Extensions.cs:73

References System.SR.Argument_CreateNavigator, System.Xml.ArgumentException, System.Xml.XPath.Extensions.CalibrateText(), and System.SR.Format().