3 instantiations of ProjectOtherwiseElement
Microsoft.Build (3)
Construction\ProjectOtherwiseElement.cs (1)
87return new ProjectOtherwiseElement(element, containingProject);
Evaluation\ProjectParser.cs (1)
833ProjectOtherwiseElement otherwise = new ProjectOtherwiseElement(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
185return new ProjectOtherwiseElement(link);
18 references to ProjectOtherwiseElement
Microsoft.Build (18)
Construction\ProjectChooseElement.cs (4)
68public ProjectOtherwiseElement OtherwiseElement 72ProjectOtherwiseElement otherwise = LastChild as ProjectOtherwiseElement; 102ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectItemElement.cs (1)
481ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectRootElement || parent.Parent is ProjectTargetElement || parent.Parent is ProjectWhenElement || parent.Parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectItemGroupElement.cs (1)
177ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectTargetElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectOtherwiseElement.cs (3)
83internal static ProjectOtherwiseElement CreateDisconnected(ProjectRootElement containingProject) 97ErrorUtilities.VerifyThrowInvalidOperation(!(nextSibling is ProjectWhenElement) && !(previousSibling is ProjectOtherwiseElement) && !(nextSibling is ProjectOtherwiseElement), "OM_NoOtherwiseBeforeWhenOrOtherwise");
Construction\ProjectPropertyGroupElement.cs (1)
110ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectRootElement || parent is ProjectTargetElement || parent is ProjectWhenElement || parent is ProjectOtherwiseElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (2)
1389public ProjectOtherwiseElement CreateOtherwiseElement() 1391return Link != null ? RootLink.CreateOtherwiseElement() : ProjectOtherwiseElement.CreateDisconnected(this);
Construction\ProjectWhenElement.cs (1)
84ErrorUtilities.VerifyThrowInvalidOperation(!(previousSibling is ProjectOtherwiseElement), "OM_NoOtherwiseBeforeWhenOrOtherwise");
Evaluation\ProjectParser.cs (2)
829private ProjectOtherwiseElement ParseProjectOtherwiseElement(XmlElementWithLocation element, ProjectChooseElement parent, int nestingDepth) 833ProjectOtherwiseElement otherwise = new ProjectOtherwiseElement(element, parent, _project);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
96/// Allow for creating a local representation to external object of type <see cref="ProjectOtherwiseElement"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
126public abstract ProjectOtherwiseElement CreateOtherwiseElement();
ObjectModelRemoting\LinkedObjectFactory.cs (1)
183public ProjectOtherwiseElement Create(ProjectOtherwiseElementLink link)