Click here to Skip to main content
14,977,979 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

It's quite obvious ;)
C#
var qry = table1.Except(table2);


See this: Enumerable.Except[^]
   
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 ;)
I believe you are looking for Except[^].
   
Comments
Maciej Los 13-May-15 16:56pm
   
I've been 8 s. faster ;)
5ed!

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