public override bool Equals(object compareTo) {
if (compareTo.GetType() == this.GetType()) {
ConfigurationElementCollection compareToElem = (ConfigurationElementCollection)compareTo;
if (this.Count != compareToElem.Count) {
return false;
}
foreach (Entry thisEntry in Items) {
bool found = false;
foreach (Entry compareEntry in compareToElem.Items) {
if (Object.Equals(thisEntry._value, compareEntry._value)) {
found = true;
break;
}
}
if (found == false) {
// not in the collection must be different
return false;
}
}
return true;
}
return false;
}