Exemplo n.º 1
0
 /// <summary>
 /// Initialize a parented ProjectOtherwiseElement
 /// </summary>
 internal ProjectOtherwiseElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement project)
     : base(xmlElement, parent, project)
 {
     ErrorUtilities.VerifyThrowArgumentNull(parent, nameof(parent));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Overridden to verify that the potential parent and siblings
 /// are acceptable. Throws InvalidOperationException if they are not.
 /// </summary>
 internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
 {
     ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectChooseElement, "OM_CannotAcceptParent");
     ErrorUtilities.VerifyThrowInvalidOperation(!(previousSibling is ProjectOtherwiseElement), "OM_NoOtherwiseBeforeWhenOrOtherwise");
 }
Exemplo n.º 3
0
 /// <summary>
 /// Overridden to verify that the potential parent and siblings
 /// are acceptable. Throws InvalidOperationException if they are not.
 /// </summary>
 internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
 {
     ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectTaskElement, "OM_CannotAcceptParent");
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initialize a parented ProjectPropertyGroupElement
 /// </summary>
 internal ProjectPropertyGroupElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject)
     : base(xmlElement, parent, containingProject)
 {
     ErrorUtilities.VerifyThrowArgumentNull(parent, nameof(parent));
 }