public bool Equals(CatchSet other) { var result = Count == other.Count && Equals(CatchAll, other.CatchAll); if (result) { for (var i = 0; i < Count; i++) { result &= this[i].Equals(other[i]); } } return(result); }
public bool Equals(CatchSet other) { if (other == null) { return(false); } if (Count != other.Count || !Equals(CatchAll, other.CatchAll)) { return(false); } for (var i = 0; i < Count; i++) { if (!this[i].Equals(other[i])) { return(false); } } return(true); }