/// <summary> /// Initializes a new instance of the <see cref="And{T}"/> class. /// </summary> /// <param name="leftHandSide">The <see cref="Specification{T}"/> for the left hand side.</param> /// <param name="rightHandSide">The <see cref="Specification{T}"/> for the right hand side.</param> internal And(Specification <T> leftHandSide, Specification <T> rightHandSide) { Predicate = rightHandSide.Compose(leftHandSide, Expression.And).Predicate; }
internal Or(Specification <T> lhs, Specification <T> rhs) { Predicate = lhs.Compose(rhs, Expression.Or).Predicate; }
/// <summary> /// Initializes a new instance of the <see cref="Or{T}"/> class. /// </summary> /// <param name="leftHandSide">The <see cref="Specification{T}"/> for the left hand side.</param> /// <param name="rightHandSide">The <see cref="Specification{T}"/> for the right hand side.</param> internal Or(Specification <T> leftHandSide, Specification <T> rightHandSide) { Predicate = leftHandSide.Compose(rightHandSide, Expression.Or).Predicate; }
internal And(Specification <T> lhs, Specification <T> rhs) { Predicate = rhs.Compose(lhs, Expression.And).Predicate; }