Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public bool Equals(StockSearch other)
 {
     return(other != null &&
            EqualityComparer <IEnumerable <StockSearchResult> > .Default.Equals(SearchResults, other.SearchResults));
 }