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.
Zero/ZeroLevel/Services/Specification/NotSpecification.cs

21 lines
501 B

using System.Runtime.Serialization;
namespace ZeroLevel.Specification
{
[DataContract]
public class NotSpecification<T> : BaseSpecification<T>
{
[DataMember]
private ISpecification<T> _specification;
public NotSpecification(ISpecification<T> specification)
{
this._specification = specification;
}
public override bool IsSatisfiedBy(T o)
{
return !this._specification.IsSatisfiedBy(o);
}
}
}

Powered by TurnKey Linux.