public override bool Equals(object obj) { StockSearch ss = obj as StockSearch; if (this.Count() != ss.Count()) { return(false); } for (int i = 0; i < this.Count(); i++) { if (this[i] != ss[i]) { return(false); } } return(true); }
public bool Equals(StockSearch other) { return(other != null && EqualityComparer <IEnumerable <StockSearchResult> > .Default.Equals(SearchResults, other.SearchResults)); }