You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
411 B
15 lines
411 B
namespace Hessian.Net.Specification |
|
{ |
|
internal class AndSpecification<TParam> : BinarySpecification<TParam> |
|
{ |
|
public AndSpecification(ISpecification<TParam> left, ISpecification<TParam> right) |
|
: base(left, right) |
|
{ |
|
} |
|
|
|
public override bool IsSatisfied(TParam arg) |
|
{ |
|
return Left.IsSatisfied(arg) && Right.IsSatisfied(arg); |
|
} |
|
} |
|
} |