Click here to Skip to main content
15,748,477 members

Articles by Jay R. Wren (Tip/Trick: 1)

Tip/Trick: 1

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 5.00

Programming Languages
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
Please Sign up or sign in to vote.
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...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.