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