20 Dec 2010
Updated: 20 Dec 2010
Rating: 5.00/5
Votes: 3
Popularity: 2.39
Licence: CPOL
Views: 4,950
Bookmarked: 1
Downloaded: 0
I'd use this only because I find 2 lines of code easier to read than all of the others above. var itemsToRemove = oldList.Except(newList).ToArray(); var itemsToAdd = newList.Except(oldList).ToArray();This will work as long as each list is actually a set. Given your description of...
|