Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello guys,
i am facing this problem, I have two IEnumerable(Of T) 'TABLE1" and TABLE2
i want a linq statement that will return all the rows in Table1 which are NOT in Table2
...thanks in Advance
Posted

I believe you are looking for Except[^].
 
Share this answer
 
Comments
Maciej Los 13-May-15 16:56pm    
I've been 8 s. faster ;)
5ed!
It's quite obvious ;)
C#
var qry = table1.Except(table2);


See this: Enumerable.Except[^]
 
Share this answer
 
v2
Comments
Tomas Takac 13-May-15 16:59pm    
Exactly what I would do! +5 :)
Maciej Los 13-May-15 17:01pm    
;)Thank you, Tomas ;)

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900