Incorrect way to check if two lists are equivalent using LINQ Except()
I come across a bug where given two list of objects, if they are not equivalent then something will update. The bug was that even though the two lists are not equivalent, nothing was updated in the database. When looking into the code, it was something like this. The SomeObjectComparer is used to determine if … [Read more…]