public override bool Equals(object obj) { if (obj == null) return false; CardSet cards=(CardSet)obj; if (Count != cards.Count) return false; for (int i=0; i<Count; i++) if (!this[i].Equals(cards[i])) return false; return true; }