public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } NotMatcher <TKey> other = (NotMatcher <TKey>)obj; if (operand == null) { if (other.operand != null) { return(false); } } else if (!operand.Equals(other.operand)) { return(false); } return(true); }
public void Run() { for (int i = 0; i < n; i++) { _m1.Equals(_m2); } }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } OrMatcher <TKey> other = (OrMatcher <TKey>)obj; if (leftOperand == null) { if (other.leftOperand != null) { return(false); } } else if (!leftOperand.Equals(other.leftOperand)) { return(false); } if (rightOperand == null) { if (other.rightOperand != null) { return(false); } } else if (!rightOperand.Equals(other.rightOperand)) { return(false); } return(true); }