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

◆ NodeType

override XPathNodeType System.Xml.XPath.XNodeNavigator.NodeType
get

Definition at line 105 of file XNodeNavigator.cs.

106 {
107 get
108 {
109 if (_source != null)
110 {
111 switch (_source.NodeType)
112 {
113 case XmlNodeType.Element:
114 return XPathNodeType.Element;
115 case XmlNodeType.Attribute:
116 {
118 if (!xAttribute.IsNamespaceDeclaration)
119 {
120 return XPathNodeType.Attribute;
121 }
122 return XPathNodeType.Namespace;
123 }
124 case XmlNodeType.Document:
125 return XPathNodeType.Root;
126 case XmlNodeType.Comment:
127 return XPathNodeType.Comment;
128 case XmlNodeType.ProcessingInstruction:
129 return XPathNodeType.ProcessingInstruction;
130 default:
131 return XPathNodeType.Text;
132 }
133 }
134 return XPathNodeType.Text;
135 }
136 }
XmlNodeType NodeType
Definition XObject.cs:51
XDocument? Document
Definition XObject.cs:39

Referenced by System.Xml.XPath.XNodeNavigator.ReadSubtree().