protected override bool Equals(AbstractSpecification <TCandidate> other) { NotSpecification <TCandidate> s = other as NotSpecification <TCandidate>; if (null == s) { return(false); } return(Negated.Equals(s.Negated)); }
protected override bool Equals(AbstractSpecification <TCandidate> other) { AndSpecification <TCandidate> specification = other as AndSpecification <TCandidate>; if (null == specification) { return(false); } return(this.First.Equals(specification.First) && this.Second.Equals(specification.Second)); }
public bool Equals(ISpecification <TCandidate> other) { AbstractSpecification <TCandidate> candidate = other as AbstractSpecification <TCandidate>; if (object.ReferenceEquals(other, null)) { return(false); } if (object.ReferenceEquals(this, other)) { return(true); } return(Equals(candidate)); }
protected abstract bool Equals(AbstractSpecification <TCandidate> other);