4 writes to LastChild
Microsoft.Build (4)
Construction\ProjectElementContainer.cs (4)
166LastChild = child; 324LastChild = child.PreviousSibling; 403LastChild = child; 657LastChild = child;
21 references to LastChild
Microsoft.Build (17)
Construction\ProjectChooseElement.cs (1)
71ProjectOtherwiseElement otherwise = LastChild as ProjectOtherwiseElement;
Construction\ProjectElementContainer.cs (13)
103get => LastChild == null 105: new Collections.ReadOnlyCollection<ProjectElement>(new ProjectElementSiblingEnumerable(LastChild, forwards: false)); 110=> LastChild == null 112: new ProjectElementSiblingSubTypeCollection<T>(LastChild, forwards: false); 164if (LastChild == reference) 250if (LastChild == null) 257InsertAfterChild(child, LastChild); 275ErrorUtilities.VerifyThrow(LastChild != null, "Invalid structure"); 322if (ReferenceEquals(child, LastChild)) 393if (LastChild == null) 399child.PreviousSibling = LastChild; 400LastChild.NextSibling = child; 642ErrorUtilities.VerifyThrow(FirstChild == null && LastChild == null, "Expecting no children");
Construction\ProjectItemGroupElement.cs (1)
107ProjectElement reference = LastChild;
Construction\ProjectUsingTaskElement.cs (1)
152ProjectUsingTaskBodyElement body = LastChild as ProjectUsingTaskBodyElement;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
27/// Access to remote <see cref="ProjectElementContainer.LastChild"/>.
Microsoft.Build.Engine.OM.UnitTests (3)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
428VerifyNotLinked(realXml.LastChild); 429VerifyLinked(viewXml.LastChild);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (1)
19public MockProjectElementLinkRemoter LastChild => this.Export(ContainerXml.LastChild);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Preprocessor_Tests.cs (1)
667xml1.LastChild.Condition = "false";