The utility class
Ice.CollectionComparer allows you to compare collections for equality:
Equality of the elements in a collection is determined by calling the elements'
Two dictionaries are equal if they contain the same number of entries with identical keys and values.
Two collections that derive from
IEnumerable are equal if they contain the same number of entries and entries compare equal. Note that order is significant, so corresponding entries must not only be equal but must also appear in the same position.