61 references to AllChildren
Microsoft.Build (5)
Construction\ProjectElementContainer.cs (1)
718foreach (ProjectElement grandchild in container.AllChildren)
Definition\Project.cs (4)
2864foreach (ProjectElement child in GetLogicalProject(import.AllChildren)) 2870foreach (ProjectElement child in GetLogicalProject(Xml.AllChildren)) 2879foreach (ProjectElement child in GetLogicalProject(import.AllChildren)) 3934IEnumerable<ProjectElement> childElements = GetLogicalProject(child.AllChildren);
Microsoft.Build.Engine.OM.UnitTests (56)
Construction\ConstructionEditing_Tests.cs (6)
2383List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren); 2406List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren); 2429List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren); 2452List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren); 2475List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren); 2499List<ProjectElement> allChildren = new List<ProjectElement>(group2.AllChildren);
Construction\ElementLocationPublic_Tests.cs (1)
123foreach (var element in project.Xml.AllChildren)
Construction\ProjectItemElement_Tests.cs (2)
359ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 412ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement);
Construction\ProjectMetadataElement_Tests.cs (18)
301ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 328ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 429ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 454ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 488ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 513ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 563ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 606ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 680ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 723ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 809ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 872ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 941ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 984ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 1056ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 1096ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement); 1167ProjectItemGroupElement itemGroup = (ProjectItemGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemGroupElement); 1214ProjectItemDefinitionGroupElement itemDefinitionGroup = (ProjectItemDefinitionGroupElement)projectElement.AllChildren.FirstOrDefault(c => c is ProjectItemDefinitionGroupElement);
Construction\ProjectRootElement_Tests.cs (4)
1769projectFileAssert.Invoke(initialLocation, reloadLocation, rootElement.AllChildren.Last().Location.File); 1864var childrenCount = projectElement.AllChildren.Count(); 1881Assert.NotEqual(childrenCount, projectElement.AllChildren.Count()); 1885Assert.Equal(childrenCount, projectElement.AllChildren.Count());
Definition\ProjectItem_Tests.cs (2)
2228Assert.Equal(2, project.Xml.AllChildren.OfType<ProjectItemElement>().Count()); 2288Assert.Equal(2, project.Xml.AllChildren.OfType<ProjectItemElement>().Count());
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (1)
190return QueryChildrenWithValidation((t) => (t as ProjectElementContainer).AllChildren, matcher);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (20)
218var realCollection = preReal.AllChildren.OfType<ProjectOtherwiseElement>().ToList(); 219var viewCollection = preView.AllChildren.OfType<ProjectOtherwiseElement>().ToList(); 231var realCollection = preReal.AllChildren.OfType<ProjectWhenElement>().ToList(); 232var viewCollection = preView.AllChildren.OfType<ProjectWhenElement>().ToList(); 244var realCollection = preReal.AllChildren.OfType<ProjectSdkElement>().ToList(); 245var viewCollection = preView.AllChildren.OfType<ProjectSdkElement>().ToList(); 270var realCollection = preReal.AllChildren.OfType<ProjectTaskElement>().ToList(); 271var viewCollection = preView.AllChildren.OfType<ProjectTaskElement>().ToList(); 284var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskElement>().ToList(); 285var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskElement>().ToList(); 297var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskBodyElement>().ToList(); 298var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskBodyElement>().ToList(); 310var realCollection = preReal.AllChildren.OfType<UsingTaskParameterGroupElement>().ToList(); 311var viewCollection = preView.AllChildren.OfType<UsingTaskParameterGroupElement>().ToList(); 323var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskParameterElement>().ToList(); 324var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskParameterElement>().ToList(); 336var realCollection = preReal.AllChildren.OfType<ProjectOnErrorElement>().ToList(); 337var viewCollection = preView.AllChildren.OfType<ProjectOnErrorElement>().ToList(); 349var realCollection = preReal.AllChildren.OfType<ProjectOutputElement>().ToList(); 350var viewCollection = preView.AllChildren.OfType<ProjectOutputElement>().ToList();
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (2)
105var existingItemGroupList = sourceProject.AllChildren.OfType<ProjectItemGroupElement>().Where((ig) => ig.Label == "Group1").ToList(); 157var existingItemGroupList = sourceProject.AllChildren.OfType<ProjectItemGroupElement>().Where((ig) => ig.Label == "Group1").ToList();