3 instantiations of ProjectChooseElement
Microsoft.Build (3)
Construction\ProjectChooseElement.cs (1)
98return new ProjectChooseElement(element, containingProject);
Evaluation\ProjectParser.cs (1)
773ProjectChooseElement choose = new ProjectChooseElement(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
135return new ProjectChooseElement(link);
58 references to ProjectChooseElement
Microsoft.Build (22)
Construction\ProjectChooseElement.cs (1)
93internal static ProjectChooseElement CreateDisconnected(ProjectRootElement containingProject)
Construction\ProjectOtherwiseElement.cs (3)
68public ICollection<ProjectChooseElement> ChooseElements => GetChildrenOfType<ProjectChooseElement>(); 101ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectChooseElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (4)
290public ICollection<ProjectChooseElement> ChooseElements => GetChildrenOfType<ProjectChooseElement>(); 1239public ProjectChooseElement CreateChooseElement() 1241return Link != null ? RootLink.CreateChooseElement() : ProjectChooseElement.CreateDisconnected(this);
Construction\ProjectWhenElement.cs (4)
31internal ProjectWhenElement(XmlElement xmlElement, ProjectChooseElement parent, ProjectRootElement containingProject) 49public ICollection<ProjectChooseElement> ChooseElements => GetChildrenOfType<ProjectChooseElement>(); 82ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectChooseElement, "OM_CannotAcceptParent");
Evaluation\Evaluator.cs (3)
920case ProjectChooseElement choose: 1432private void EvaluateChooseElement(ProjectChooseElement chooseElement) 1472case ProjectChooseElement choose:
Evaluation\ProjectParser.cs (4)
769private ProjectChooseElement ParseProjectChooseElement(XmlElementWithLocation element, ProjectElementContainer parent, int nestingDepth) 773ProjectChooseElement choose = new ProjectChooseElement(element, parent, _project); 815private ProjectWhenElement ParseProjectWhenElement(XmlElementWithLocation element, ProjectChooseElement parent, int nestingDepth) 829private ProjectOtherwiseElement ParseProjectOtherwiseElement(XmlElementWithLocation element, ProjectChooseElement parent, int nestingDepth)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
68/// Allow for creating a local representation to external object of type <see cref="ProjectChooseElement"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
73public abstract ProjectChooseElement CreateChooseElement();
ObjectModelRemoting\LinkedObjectFactory.cs (1)
133public ProjectChooseElement Create(ProjectChooseElementLink link)
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\ConstructionEditing_Tests.cs (14)
167ProjectChooseElement choose = project.CreateChooseElement(); 181ProjectChooseElement choose = project.CreateChooseElement(); 197ProjectChooseElement choose = project.CreateChooseElement(); 213ProjectChooseElement choose1 = project.CreateChooseElement(); 215ProjectChooseElement choose2 = project.CreateChooseElement(); 231ProjectChooseElement choose1 = project.CreateChooseElement(); 233ProjectChooseElement choose2 = project.CreateChooseElement(); 1240ProjectChooseElement choose = project.CreateChooseElement(); 1258ProjectChooseElement choose = project.CreateChooseElement(); 1274ProjectChooseElement choose = project.CreateChooseElement(); 1290ProjectChooseElement choose = project.CreateChooseElement(); 1306ProjectChooseElement choose = project.CreateChooseElement(); 1930ProjectChooseElement choose = project.CreateChooseElement(); 2300ProjectChooseElement choose = project.CreateChooseElement();
Construction\ProjectChooseElement_Tests.cs (7)
178ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children); 198ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children); 222ProjectChooseElement choose = (ProjectChooseElement)Helpers.GetFirst(project.Children); 276ProjectChooseElement choose = Helpers.GetFirst(project.Xml.ChooseElements);
Construction\ProjectRootElement_Tests.cs (1)
1188var choose = pre.CreateChooseElement();
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
563public static void Verify(ProjectChooseElement viewXml, ProjectChooseElement realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
139if (VerifyCheckType<ProjectChooseElement>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (8)
103xmlPair.CreateWithVerify<ProjectChooseElement>((p) => p.CreateChooseElement()); 370var chooseCreataed = xmlPair.CreateWithVerify<ProjectChooseElement>((p) => p.CreateChooseElement()); 371xmlPair.QueryChildrenWithValidation<ProjectChooseElement>((pc) => true, 0); 374var choose = xmlPair.QuerySingleChildrenWithValidation<ProjectChooseElement>((pc) => true); 413var choose = xmlPair.AppendNewChaildWithVerify<ProjectChooseElement>(ObjectType.View, "choose", (p, s) => p.CreateChooseElement(), (p, s) => true); 418when.Append2NewLabeledChildrenWithVerify<ProjectChooseElement>("choose", (p, l) => p.CreateChooseElement(), out var choose1, out var choose2); 452var choose = xmlPair.AppendNewChaildWithVerify<ProjectChooseElement>(ObjectType.View, "choose", (p, s) => p.CreateChooseElement(), (p, s) => true); 456otherwise.Append2NewLabeledChildrenWithVerify<ProjectChooseElement>("choose", (p, l) => p.CreateChooseElement(), out var choose1, out var choose2);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
207public override ProjectChooseElement CreateChooseElement() 209return (ProjectChooseElement)this.Proxy.CreateChooseElement().Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
52ElementInfo.New<ProjectChooseElement , MockProjectChooseElementLinkRemoter>(),