Пример #1
0
 /// <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;
 }
Пример #2
0
 internal Or(Specification <T> lhs, Specification <T> rhs)
 {
     Predicate = lhs.Compose(rhs, Expression.Or).Predicate;
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
 internal And(Specification <T> lhs, Specification <T> rhs)
 {
     Predicate = rhs.Compose(lhs, Expression.And).Predicate;
 }