1 override of FirstChild
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
46public override XmlNode? FirstChild
143 references to FirstChild
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (2)
TransformTest.cs (2)
31var depsElement = envNode.FirstChild; 61var depsElement = envNode.FirstChild;
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\CertificateXmlEncryptor.cs (2)
90var elementToEncrypt = (XmlElement)xmlDocument.DocumentElement!.FirstChild!; 98return XElement.Load(xmlDocument.DocumentElement.FirstChild!.CreateNavigator()!.ReadSubtree());
XmlEncryption\EncryptedXmlDecryptor.cs (1)
78return XElement.Load(xmlDocument.DocumentElement!.FirstChild!.CreateNavigator()!.ReadSubtree());
Microsoft.Build (17)
Construction\ProjectElement.cs (4)
369if (XmlElement.ChildNodes.Count == 1 && XmlElement.FirstChild.NodeType == XmlNodeType.Text) 371XmlElement.RemoveChild(XmlElement.FirstChild); 407if (element.XmlElement.ChildNodes.Count == 1 && element.XmlElement.FirstChild.NodeType == XmlNodeType.Text) 409XmlElement.AppendChild(XmlElement.OwnerDocument.CreateTextNode(element.XmlElement.FirstChild.Value));
Construction\ProjectElementContainer.cs (2)
561if (XmlElement.FirstChild.NodeType == XmlNodeType.Whitespace) 563XmlElement.RemoveChild(XmlElement.FirstChild);
Construction\ProjectRootElement.cs (1)
461var declaration = XmlDocument.FirstChild as XmlDeclaration;
Evaluation\Preprocessor.cs (2)
185if (documentElement.FirstChild == null) 191documentElement.InsertBefore(xmlElement, documentElement.FirstChild);
Evaluation\ProjectParser.cs (1)
632if (childElement.ChildNodes.Count == 1 && childElement.FirstChild.NodeType == XmlNodeType.Text)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (2)
138if (xml.XmlElement.ChildNodes.Count == 1 && xml.XmlElement.FirstChild.NodeType == XmlNodeType.Text) 140result = xml.XmlElement.FirstChild.Value;
ProjectWriter.cs (1)
103XmlDeclaration declaration = project.FirstChild as XmlDeclaration;
Utilities\Utilities.cs (2)
199if (node.ChildNodes.Count == 1 && (node.FirstChild.NodeType == XmlNodeType.Text || node.FirstChild.NodeType == XmlNodeType.CDATA))
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (1)
48_current = GetNextNode(_element.FirstChild);
XmlUtilities.cs (1)
49newElement.AppendChild(oldElement.FirstChild);
Microsoft.Build.Engine.UnitTests (1)
Utilities_Tests.cs (1)
330XmlElementWithLocation rootElement = (XmlElementWithLocation)xmldoc.FirstChild;
Microsoft.Build.Tasks.Core (9)
BootstrapperUtil\BootstrapperBuilder.cs (3)
1232XmlNode nextNode = baseNode.FirstChild; 1265nextNode = langNode.FirstChild; 2177XmlNode childNode = node.FirstChild;
ManifestUtil\TrustInfo.cs (2)
100while (permissionSetElement.FirstChild != null) 102permissionSetElement.RemoveChild(permissionSetElement.FirstChild);
XamlTaskFactory\RelationsParser.cs (4)
255XmlNode node = xmlDocument.FirstChild; 315return ParseSwitchGroupOrSwitch(node.FirstChild, SwitchRelationsList, null); 360if (!ParseSwitchGroupOrSwitch(node.FirstChild, switchRelationsList, newSwitchRelations)) 432XmlNode child = node.FirstChild;
Microsoft.Web.Xdt.Extensions.Tests (4)
InsertOrAppendAttributeTests.cs (4)
26var firstChild = configurationNode.FirstChild; 50var firstChild = configurationNode.FirstChild; 74var firstChild = configurationNode.FirstChild; 98var firstChild = configurationNode.FirstChild;
PresentationFramework (1)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
435XmlElement root = doc.FirstChild as XmlElement;
ReachFramework (10)
PrintConfig\PrtTicket_Base.cs (6)
823(valueNode.FirstChild == null) || 824(valueNode.FirstChild.NodeType != XmlNodeType.Text)) 836return valueNode.FirstChild.Value; 1295(valueNode.FirstChild == null) || 1296(valueNode.FirstChild.NodeType != XmlNodeType.Text)) 1306value = valueNode.FirstChild.Value;
PrintConfig\PrtTicket_Editor.cs (3)
88XmlNode rootChild = root.FirstChild; 242XmlNode child = parent.FirstChild; 304XmlNode child = parent.FirstChild;
PrintConfig\PrtTicket_Public.cs (1)
84XmlDeclaration xmlDecl = _xmlDoc.FirstChild as XmlDeclaration;
System.Configuration.ConfigurationManager (1)
System\Configuration\HandlerBase.cs (1)
173throw new ConfigurationErrorsException(SR.Config_base_no_child_nodes, node.FirstChild);
System.Data.Common (38)
System\Data\DataSet.cs (1)
2282if (root.ChildNodes.Count == 0 || ((root.ChildNodes.Count == 1) && root.FirstChild!.GetType() == typeof(System.Xml.XmlText)))
System\Data\XDRSchema.cs (6)
50for (XmlNode? n = schemaRoot.FirstChild; n != null; n = n.NextSibling) 92vn = node.OwnerDocument.FirstChild; 107if (vn!.FirstChild != null) 108vn = vn.FirstChild; 162for (XmlNode? n = typeNode.FirstChild; n != null; n = n.NextSibling) 525for (XmlNode? n = typeNode.FirstChild; n != null; n = n.NextSibling)
System\Data\XmlDataLoader.cs (7)
101for (XmlNode? n = parentElement.FirstChild; n != null; n = n.NextSibling) 226for (XmlNode? tabNode = e.FirstChild; tabNode != null; tabNode = tabNode.NextSibling) 381n = rowElement.FirstChild; 413n = e.FirstChild; 463n = attr.FirstChild; 510for (XmlNode? n = parentElement.FirstChild; n != null; n = n.NextSibling) 729n = attr.FirstChild;
System\Data\xmlsaver.cs (2)
1212for (XmlNode? n = schema.FirstChild; n != null; n = n.NextSibling) 1579for (XmlNode? n = node.FirstChild; n != null; n = n.NextSibling)
System\Xml\DataPointer.cs (3)
658n = _node.FirstChild; 668for (n = _node.FirstChild; n != null; n = n.NextSibling) 677n = n.FirstChild;
System\Xml\DataSetMappper.cs (2)
278XmlNode? fc = attr.FirstChild; 323XmlNode? fc = e!.FirstChild;
System\Xml\RegionIterator.cs (2)
42nextNode = _currentNode.FirstChild; 140XmlNode? n = CurrentNode.FirstChild;
System\Xml\TreeIterator.cs (1)
30nextNode = _currentNode.FirstChild;
System\Xml\XmlBoundElement.cs (2)
51return base.FirstChild; 55internal XmlNode? SafeFirstChild => base.FirstChild;
System\Xml\XmlDataDocument.cs (9)
141for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 181for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 500Debug.Assert(docElem.LastChild == docElem.FirstChild); 1029Debug.Assert(clone.FirstChild == null); 1172if (FirstChild != null) 1312for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 2298XmlNode? child = parent.FirstChild; 2327XmlNode? n = parent.FirstChild; 2354return n.FirstChild;
System\Xml\XPathNodePointer.cs (3)
1288n = _node.FirstChild; 1297for (n = _node.FirstChild; n != null; n = n.NextSibling) 1305n = n.FirstChild;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
1414XmlNode? child = xmlElement.FirstChild;
System.Private.Xml (52)
System\Xml\Dom\DocumentSchemaValidator.cs (3)
278for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 363for (XmlNode? child = elementNode.FirstChild; child != null; child = child.NextSibling) 721for (child = parentNode.FirstChild; child != null; child = child.NextSibling)
System\Xml\Dom\DocumentXPathNavigator.cs (5)
992XmlNode? firstChild = following.FirstChild; 1080XmlNode? firstChild = following.FirstChild; 1920XmlNode? child = node.FirstChild; 1934child = child.FirstChild; 1966sibling = sibling.FirstChild;
System\Xml\Dom\XmlAttribute.cs (1)
356for (XmlNode? node = FirstChild; node != null; node = node.NextSibling)
System\Xml\Dom\XmlCharacterData.cs (1)
216if (!DecideXPNodeTypeForTextNodes(n.FirstChild!, ref xnt))
System\Xml\Dom\XmlChildEnumerator.cs (3)
17this.child = container.FirstChild; 30child = container.FirstChild; 44child = container.FirstChild;
System\Xml\Dom\XmlChildNodes.cs (3)
23for (XmlNode? n = _container.FirstChild; n != null; n = n.NextSibling, i--) 37for (XmlNode? n = _container.FirstChild; n != null; n = n.NextSibling) 48if (_container.FirstChild == null)
System\Xml\Dom\XmlDocument.cs (6)
378XmlDeclaration? dec = FirstChild as XmlDeclaration; 500node = refNode.ParentNode.FirstChild; 528refChild ??= FirstChild; 536return (refChild == FirstChild); 1043for (XmlNode? n = fromNode.FirstChild; n != null; n = n.NextSibling) 1435XmlNode? n = this.FirstChild;
System\Xml\Dom\XmlDocumentFragment.cs (2)
144XmlNode? firstNode = FirstChild; 174return (refChild == null || refChild == FirstChild);
System\Xml\Dom\XmlElement.cs (2)
480n = e.FirstChild; 526for (XmlNode? node = FirstChild; node != null; node = node.NextSibling)
System\Xml\Dom\XmlElementList.cs (1)
110XmlNode? retNode = curNode.FirstChild;
System\Xml\Dom\XmlLinkedNode.cs (2)
24XmlNode? node = parent.FirstChild; 51if (next != parent.FirstChild)
System\Xml\Dom\XmlLoader.cs (3)
282if (node.FirstChild == null) 341if (node.FirstChild == null) 850XmlNode? child = elem.FirstChild;
System\Xml\Dom\XmlNode.cs (17)
136XmlLinkedNode? firstChild = parentNode.FirstChild as XmlLinkedNode; 278XmlNode? first = newChild.FirstChild; 303if (refNode == FirstChild) 393XmlNode? first = newChild.FirstChild; 506if (oldNode == FirstChild) 576return InsertBefore(newChild, FirstChild); 598XmlNode? first = newChild.FirstChild; 720for (XmlNode? child = container.FirstChild; child != null; child = child.NextSibling) 737for (XmlNode? crtChild = this.FirstChild; crtChild != null;) 902for (XmlNode? child = FirstChild; child != null; child = child.NextSibling) 904if (child.FirstChild == null) 923XmlNode? fc = FirstChild; 948XmlNode? firstChild = FirstChild; 1047XmlNode? child = FirstChild; 1242for (XmlNode? n = FirstChild; n != null; n = n.NextSibling) 1258for (XmlNode? n = FirstChild; n != null; n = n.NextSibling) 1302for (XmlNode? child = FirstChild; child != null; child = child.NextSibling)
System\Xml\Dom\XmlNodeReader.cs (3)
790XmlNode? firstChild = _curNode.FirstChild; 1065XmlNode? firstChild = _curNode.FirstChild; 1081_curNode = _curNode.FirstChild!;
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
860XmlNode? child = dummy.FirstChild;
System\Security\Cryptography\Xml\KeyInfo.cs (1)
75XmlNode? child = keyInfoElement.FirstChild;
System\Security\Cryptography\Xml\Utils.cs (1)
363XmlNode? child = inputElement.FirstChild;
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
241XmlNode? child = parent.FirstChild;