1 override of FirstChild
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
47public override XmlNode? FirstChild
154 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)
544if (XmlElement.FirstChild.NodeType == XmlNodeType.Whitespace) 546XmlElement.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)
634if (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)
196if (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 (6)
Engine\Import.cs (1)
268ProjectXmlUtilities.ThrowProjectInvalidChildElement(importElement.FirstChild);
Engine\Project.cs (1)
1332return mainProjectEntireContents.FirstChild as XmlDeclaration;
Engine\Utilities.cs (2)
426if (node.ChildNodes.Count == 1 && (node.FirstChild.NodeType == XmlNodeType.Text || node.FirstChild.NodeType == XmlNodeType.CDATA))
Engine\XmlSearcher.cs (1)
157xmlNode = xmlNode.FirstChild;
Xml\ProjectXmlUtilities.cs (1)
71ThrowProjectInvalidChildElement(element.FirstChild);
Microsoft.Build.Engine.UnitTests (5)
Evaluation\ProjectStringCache_Tests.cs (4)
66XmlNode node1 = nodes1[0].FirstChild; 67XmlNode node2 = nodes2[0].FirstChild; 140node1 = nodes1[0].FirstChild; 141node2 = nodes2[0].FirstChild;
Utilities_Tests.cs (1)
330XmlElementWithLocation rootElement = (XmlElementWithLocation)xmldoc.FirstChild;
Microsoft.Build.Tasks.Core (5)
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);
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)
443XmlElement root = doc.FirstChild as XmlElement;
ReachFramework (10)
PrintConfig\PrtTicket_Base.cs (6)
831(valueNode.FirstChild == null) || 832(valueNode.FirstChild.NodeType != XmlNodeType.Text)) 844return valueNode.FirstChild.Value; 1303(valueNode.FirstChild == null) || 1304(valueNode.FirstChild.NodeType != XmlNodeType.Text)) 1314value = valueNode.FirstChild.Value;
PrintConfig\PrtTicket_Editor.cs (3)
95XmlNode rootChild = root.FirstChild; 249XmlNode child = parent.FirstChild; 311XmlNode child = parent.FirstChild;
PrintConfig\PrtTicket_Public.cs (1)
90XmlDeclaration 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)
2244if (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) 379n = rowElement.FirstChild; 411n = e.FirstChild; 461n = attr.FirstChild; 507for (XmlNode? n = parentElement.FirstChild; n != null; n = n.NextSibling) 723n = attr.FirstChild;
System\Data\xmlsaver.cs (2)
1205for (XmlNode? n = schema.FirstChild; n != null; n = n.NextSibling) 1571for (XmlNode? n = node.FirstChild; n != null; n = n.NextSibling)
System\Xml\DataPointer.cs (3)
657n = _node.FirstChild; 667for (n = _node.FirstChild; n != null; n = n.NextSibling) 676n = 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)
54return base.FirstChild; 58internal XmlNode? SafeFirstChild => base.FirstChild;
System\Xml\XmlDataDocument.cs (9)
142for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 183for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 515Debug.Assert(docElem.LastChild == docElem.FirstChild); 1054Debug.Assert(clone.FirstChild == null); 1180if (FirstChild != null) 1323for (XmlNode? child = node.FirstChild; child != null; child = child.NextSibling) 2329XmlNode? child = parent.FirstChild; 2358XmlNode? n = parent.FirstChild; 2385return n.FirstChild;
System\Xml\XPathNodePointer.cs (3)
1283n = _node.FirstChild; 1292for (n = _node.FirstChild; n != null; n = n.NextSibling) 1300n = 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;
System.ServiceModel.Primitives (4)
System\IdentityModel\Security\WSTrust.cs (2)
167if (element.FirstChild is XmlText) 169value = ((XmlText)element.FirstChild).Value;
System\ServiceModel\Security\WSTrustFeb2005.cs (2)
168renewTarget = StandardsManager.SecurityTokenSerializer.ReadKeyIdentifierClause(new XmlNodeReader(child.FirstChild)); 172closeTarget = StandardsManager.SecurityTokenSerializer.ReadKeyIdentifierClause(new XmlNodeReader(child.FirstChild));
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
385XmlNode child = documentation.FirstChild;