public override bool Equals(object compareTo) { ConfigurationElementCollection other = compareTo as ConfigurationElementCollection; if (other == null) { return(false); } if (GetType() != other.GetType()) { return(false); } if (Count != other.Count) { return(false); } for (int n = 0; n < Count; n++) { if (!BaseGet(n).Equals(other.BaseGet(n))) { return(false); } } return(true); }