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

◆ OwnerNode()

static XmlNode System.Xml.DocumentXPathNavigator.OwnerNode ( XmlNode node)
inlinestaticprivate

Definition at line 1149 of file DocumentXPathNavigator.cs.

1150 {
1151 XmlNode parentNode = node.ParentNode;
1152 if (parentNode != null)
1153 {
1154 return parentNode;
1155 }
1156 if (node is XmlAttribute xmlAttribute)
1157 {
1158 return xmlAttribute.OwnerElement;
1159 }
1160 return null;
1161 }

Referenced by System.Xml.DocumentXPathNavigator.ComparePosition(), System.Xml.DocumentXPathNavigator.DeleteRange(), System.Xml.DocumentXPathNavigator.DeleteSelf(), and System.Xml.DocumentXPathNavigator.GetDepth().