Click here to Skip to main content
15,884,099 members
Articles / LINQ

Efficient way to Remove Item from the List

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
8 Nov 2012CPOL 2.5K  
So, I have a two un-ordered list - result1 and result2 as listed below. By using a code below I am able to populate result1 excluding the common items between those two lists. This code works perfectly for the small size list. However, in real scenario I have two lists with millions of item...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
16 Nov 2012Catalin Serafimescu
Try this: http://stackoverflow.com/questions/3047657/linq-to-sql-in-and-not-in[^]Or this: How to: Find the Set Difference Between Two Lists (LINQ)[^]

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions