Has anyone tried this, have any thoughts on what's the best approach?
I have a Dictionary<SimpleClassContainingOneStringProperty, decimal>
and want to compare it against a previous snapshot of the same Dictionary<> object, to check if there has been a change to any of the data within the collection.
1) I can iterate through, running Equals() against each item.
2) I was thinking of using an MD5 checksum on the object.
3) Or, perhaps a way to convert the collection to it's byte representation as a byte[]
and then running a simpler, faster equality check against two byte arrays?
Any feedback on these or any other ideas?