4 writes to FirstChild
Microsoft.Build (4)
Construction\ProjectElementContainer.cs (4)
222FirstChild = child; 319FirstChild = child.NextSibling; 395FirstChild = child; 656FirstChild = child;
24 references to FirstChild
Microsoft.Build (17)
Construction\ProjectElementContainer.cs (14)
69=> FirstChild == null 79get => FirstChild == null 81: new Collections.ReadOnlyCollection<ProjectElement>(new ProjectElementSiblingEnumerable(FirstChild)); 89internal ProjectElementSiblingEnumerable ChildrenEnumerable => new ProjectElementSiblingEnumerable(FirstChild); 93=> FirstChild == null 95: new ProjectElementSiblingSubTypeCollection<T>(FirstChild); 220if (FirstChild == reference) 256ErrorUtilities.VerifyThrow(FirstChild != null, "Invalid structure"); 269if (FirstChild == null) 276InsertBeforeChild(child, FirstChild); 317if (ReferenceEquals(child, FirstChild)) 642ErrorUtilities.VerifyThrow(FirstChild == null && LastChild == null, "Expecting no children"); 710ProjectElement child = FirstChild; 731ProjectElement child = FirstChild;
Construction\ProjectItemElement.cs (1)
281public bool HasMetadata => FirstChild != null;
Construction\ProjectUsingTaskElement.cs (1)
164UsingTaskParameterGroupElement parameterGroup = FirstChild as UsingTaskParameterGroupElement;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
22/// Access to remote <see cref="ProjectElementContainer.FirstChild"/>.
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ConstructionEditing_Tests.cs (1)
1278choose.InsertAfterChild(project.CreateOtherwiseElement(), choose.FirstChild);
Construction\WhiteSpacePreservation_Tests.cs (1)
405var existingItemElement = itemGroup.FirstChild;
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
425VerifyNotLinked(realXml.FirstChild); 426VerifyLinked(viewXml.FirstChild); 431var realChild = realXml.FirstChild; 432var viewChild = viewXml.FirstChild;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (1)
18public MockProjectElementLinkRemoter FirstChild => this.Export(ContainerXml.FirstChild);