protected ConditionalOperator(Predicate leftOperand, Predicate rightOperand) { if (leftOperand == null) { throw new ArgumentNullException("leftOperand"); } if (rightOperand == null) { throw new ArgumentNullException("rightOperand"); } this.LeftOperand = leftOperand; this.RightOperand = rightOperand; }
public SearchedCaseCondition(Predicate whenPredicate, Expression thenValue) { if (whenPredicate == null) { throw new ArgumentNullException("whenPredicate"); } if (thenValue == null) { throw new ArgumentNullException("thenValue"); } this.WhenPredicate = whenPredicate; this.ThenValue = thenValue; }
public SearchedCase CaseWhen(Predicate whenPredicate, Expression thenValue) { if (whenPredicate == null) { throw new ArgumentNullException("whenPredicate"); } if (thenValue == null) { throw new ArgumentNullException("thenValue"); } this.conditions.Add(new SearchedCaseCondition(whenPredicate, thenValue)); return this; }