Exemple #1
0
 /// <summary>
 /// Combines two conditions using AND.
 /// </summary>
 /// <param name="left">The left expression.</param>
 /// <param name="right">The right expression.</param>
 /// <returns>
 /// A new condition collection.
 /// </returns>
 public static ConditionPair operator &(ConditionBase left, ConditionBase right) => ConditionPair.And(left, right);
Exemple #2
0
        // Some of the bool operators are here, the reset are in ConditionCollection class

        /// <summary>
        /// Combines two conditions using OR.
        /// </summary>
        /// <param name="left">The left expression.</param>
        /// <param name="right">The right expression.</param>
        /// <returns>
        /// A new condition collection.
        /// </returns>
        public static ConditionPair operator |(ConditionBase left, ConditionBase right) => ConditionPair.Or(left, right);
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="If"/> class.
 /// </summary>
 /// <param name="condition">The statement conditions.</param>
 public If(ConditionPair condition)
 {
     Condition = condition;
 }