예제 #1
0
 /// <summary>
 /// Creates an OrConstraint between two ConditionConstraints.
 /// </summary>
 /// <param name="first">The first condition.</param>
 /// <param name="second">The second condition.</param>
 /// <returns>The constraint.</returns>
 public static OrConstraint Or(this ConditionConstraint first, ConditionConstraint second)
 {
     return new OrConstraint { First = first, Second = second };
 }
예제 #2
0
 /// <summary>
 /// Creates an AndConstraint between two ConditionConstraints.
 /// </summary>
 /// <param name="first">The first condition.</param>
 /// <param name="second">The second condition.</param>
 /// <returns>The constraint.</returns>
 public static AndConstraint And(this ConditionConstraint first, ConditionConstraint second)
 {
     return new AndConstraint { First = first, Second = second };
 }
예제 #3
0
 /// <summary>
 /// Creates a NotConstraint on the given condition.
 /// </summary>
 /// <param name="condition">The condition to negate.</param>
 /// <returns>The constraint.</returns>
 public static NotConstraint Not(this ConditionConstraint condition)
 {
     return new NotConstraint { Condition = condition };
 }