8 overrides of ParentNode
System.Private.Xml (8)
System\Xml\Dom\XmlAttribute.cs (1)
62public override XmlNode? ParentNode
System\Xml\Dom\XmlCDataSection.cs (1)
44public override XmlNode? ParentNode
System\Xml\Dom\XmlDocument.cs (1)
361public override XmlNode? ParentNode
System\Xml\Dom\XmlDocumentFragment.cs (1)
75public override XmlNode? ParentNode
System\Xml\Dom\XmlElement.cs (1)
115public override XmlNode? ParentNode
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
45public override XmlNode? ParentNode
System\Xml\Dom\XmlText.cs (1)
48public override XmlNode? ParentNode
System\Xml\Dom\XmlWhitespace.cs (1)
46public override XmlNode? ParentNode
151 references to ParentNode
Microsoft.Build (1)
Evaluation\Preprocessor.cs (1)
111node.ParentNode?.RemoveChild(node);
Microsoft.Build.Tasks.Core (1)
ManifestUtil\mansign2.cs (1)
454signatureNode.ParentNode.RemoveChild(signatureNode);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiAddFileTests.cs (2)
97Assert.Same(openApiRefs[0].ParentNode, openApiRefs[1].ParentNode);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
709 onNode.ParentNode.RemoveChild(onNode);
PresentationFramework (2)
MS\Internal\Annotations\XmlElementCollection.cs (1)
233current = current.ParentNode;
MS\Internal\Data\XmlBindingWorker.cs (1)
647parent = parent.ParentNode;
System.Data.Common (40)
System\Data\XDRSchema.cs (1)
115vn = vn.ParentNode;
System\Data\XmlDataLoader.cs (1)
443n = n.ParentNode;
System\Data\XmlToDatasetMap.cs (2)
441XmlNode? nodeRegion = (node.NodeType == XmlNodeType.Attribute) ? ((XmlAttribute)node).OwnerElement : node.ParentNode; 451nodeRegion = nodeRegion.ParentNode;
System\Xml\DataPointer.cs (1)
270XmlNode? n = _node.ParentNode;
System\Xml\DataSetMappper.cs (1)
230node = node.ParentNode;
System\Xml\RegionIterator.cs (1)
91nextNode = nextNode.ParentNode;
System\Xml\TreeIterator.cs (1)
63nextNode = nextNode.ParentNode;
System\Xml\XmlDataDocument.cs (11)
2257Debug.Assert(child.ParentNode != prevSibling.ParentNode); 2259Debug.Assert(prevSibling.ParentNode != null); 2265child.ParentNode?.RemoveChild(child); 2267Debug.Assert(child.ParentNode == null); 2268prevSibling.ParentNode.InsertAfter(child, prevSibling); 2280DataSetMapper.GetRegion(parent.ParentNode, out parentRegionRowElem); 2320node.ParentNode!.RemoveChild(node); 2646node = node.ParentNode; 2952XmlNode? parent = node.ParentNode; 2961XmlBoundElement? be = node.ParentNode as XmlBoundElement;
System\Xml\XPathNodePointer.cs (21)
314XmlNode? parent = _node.ParentNode; 426curNode = curNode.ParentNode!; 757XmlNode? parent = _node.ParentNode; 803XmlNode? parent = _node.ParentNode; 852parent = _node.ParentNode; 1001n = _node.ParentNode; 1022return node.ParentNode; 1074XmlNode? parent = ((curNode.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode)); 1078parent = curNode.ParentNode; // no need to check for attribute since navigator can't be built on its children or navigate to its children 1183curNode1 = ((curNode1.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.ParentNode)); 1193curNode2 = ((curNode2.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.ParentNode)); 1218parent1 = curNode1.ParentNode; 1219parent2 = curNode2.ParentNode; 1380node = node.ParentNode; 1390node = node.ParentNode; 1443node = node.ParentNode; 1529node = node.ParentNode; 1559node = node.ParentNode; 1600node = node.ParentNode; 1619node = node.ParentNode; 1632node = node.ParentNode;
System.Private.Xml (95)
System\Xml\Dom\DocumentSchemaValidator.cs (6)
123if (nodeToValidate.ParentNode!.NodeType == XmlNodeType.Document) 126nodeToValidate = nodeToValidate.ParentNode; 208node = node.ParentNode; 214node = node.ParentNode; 493XmlNode? parentNode = currentNode.ParentNode; 503parentNode = parentNode.ParentNode;
System\Xml\Dom\DocumentXmlWriter.cs (5)
173_write = _write.ParentNode; 372XmlNode? parent = _start.ParentNode; 385parent = _start.ParentNode; 456XmlNode? parent = _start.ParentNode; 544XmlNode? parent = _start.ParentNode;
System\Xml\Dom\DocumentXPathNavigator.cs (18)
375node = node.ParentNode; 548XmlElement? element = attributes.parent.ParentNode as XmlElement; 662XmlElement? element = attributes.parent.ParentNode as XmlElement; 861XmlNode? parent = _source.ParentNode; 1009XmlNode? parent = following.ParentNode; 1097XmlNode? parent = following.ParentNode; 1279XmlNode? parent = node.ParentNode; 1555writer.NamespaceManager = GetNamespaceManager(node.ParentNode, _document); 1579writer.NamespaceManager = GetNamespaceManager(_source.ParentNode, _document); 1640writer.NamespaceManager = GetNamespaceManager(node.ParentNode, _document); 1778XmlNode? parent = node.ParentNode; 1811node = node.ParentNode; 1899XmlNode? parent = node.ParentNode; 1913parent = parent.ParentNode; 1955current = current.ParentNode; 1987current = current.ParentNode; 2028current = current.ParentNode; 2077XmlNode? parent = bottom.ParentNode;
System\Xml\Dom\XmlCharacterData.cs (7)
55XmlNode? parent = ParentNode; 101XmlNode? parent = ParentNode; 119XmlNode? parent = ParentNode; 148XmlNode? parent = ParentNode; 176XmlNode? parent = ParentNode; 201Debug.Assert(XmlDocument.IsTextNode(n.NodeType) || (n.ParentNode != null && n.ParentNode.NodeType == XmlNodeType.EntityReference));
System\Xml\Dom\XmlDocument.cs (11)
499if (refNode.ParentNode != null) 500node = refNode.ParentNode.FirstChild; 776parent = node.ParentNode; 788parent = parent.ParentNode; 800parent = node.ParentNode; 813parent = parent.ParentNode; 859if (intnode.ParentNode != null && intnode.ParentNode.NodeType == XmlNodeType.EntityReference) 861if (intnode.ParentNode.PreviousSibling != null) 863n = intnode.ParentNode.PreviousSibling; 868intnode = intnode.ParentNode;
System\Xml\Dom\XmlElement.cs (2)
492while (n != root && n == n.ParentNode!.LastChild) 494n = n.ParentNode;
System\Xml\Dom\XmlElementList.cs (2)
120retNode = retNode.ParentNode; 149retNode ??= curNode.ParentNode;
System\Xml\Dom\XmlLinkedNode.cs (2)
21XmlNode? parent = ParentNode; 48XmlNode? parent = ParentNode;
System\Xml\Dom\XmlLoader.cs (7)
158if (parent.ParentNode == null) 162parent = parent.ParentNode; 240while (parent.ParentNode != null) 242parent = parent.ParentNode; 495if (parent.ParentNode == null) 500parent = parent.ParentNode; 729node = node.ParentNode;
System\Xml\Dom\XmlNamedNodemap.cs (2)
148oldParent = node.ParentNode; 215oldParent = node.ParentNode;
System\Xml\Dom\XmlNode.cs (23)
226XmlNode? n = this.ParentNode; 232n = n.ParentNode; 241XmlNode? parent = ParentNode; 243parent = parent.ParentNode; 259if (refChild.ParentNode != this) 273newChild.ParentNode?.RemoveChild(newChild); 298XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.ParentNode, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert); 373if (refChild.ParentNode != this) 387newChild.ParentNode?.RemoveChild(newChild); 413XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.ParentNode, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert); 493if (oldChild.ParentNode != this) 589newChild.ParentNode?.RemoveChild(newChild); 619XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.ParentNode, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert); 870n = n.ParentNode; 1019XmlNode? curNode = this.ParentNode; //save one while loop since if going to here, the nodetype of this node can't be document, entity and entityref 1031curNode = curNode.ParentNode; 1134node = node.ParentNode; 1142node = node.ParentNode; 1213node = node.ParentNode; 1221node = node.ParentNode; 1365node = node.ParentNode; 1387node = node.ParentNode; 1444nextNode.parentNode = prevNode.ParentNode;
System\Xml\Dom\XmlNodeReader.cs (6)
593while (_curNode.NodeType != XmlNodeType.Attribute && ((_curNode = _curNode.ParentNode!) != null)) 777XmlNode? parent = _curNode.ParentNode; 892node = node.ParentNode; 979node = node.ParentNode; 1032node = node.ParentNode; 1092XmlNode? parentNode = _curNode.ParentNode;
System\Xml\Dom\XmlProcessingInstruction.cs (1)
50XmlNode? parent = ParentNode;
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
52return base.ParentNode;
System\Xml\Dom\XmlWhitespace.cs (1)
53return base.ParentNode;
System\Xml\Schema\Parser.cs (1)
320_parentNode = _parentNode!.ParentNode;
System.Security.Cryptography.Xml (9)
System\Security\Cryptography\Xml\Utils.cs (5)
53XmlNode? ancestorNode = ((XmlNode)element).ParentNode; 59ancestorNode = ancestorNode.ParentNode; 251node1.ParentNode!.RemoveChild(node1); 515ancestorNode = ancestorNode.ParentNode; 565ancestorNode = ancestorNode.ParentNode;
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (1)
173signatureList[_signaturePosition - 1]!.ParentNode!.RemoveChild(signatureList[_signaturePosition - 1]!);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (3)
91encryptedGrantList[i]!.ParentNode!.InnerXml = clearContent; 152signatureNode?.ParentNode!.RemoveChild(signatureNode); 169issuerList[i]!.ParentNode!.RemoveChild(issuerList[i]!);