.Net Tip : Intersect or find common records of Two LINQ queries withC# Examples and VB.Net Examples

A

Arne Vajhøj

You can get Intersect of two LINQ query or Results.
Intersect means find common records between two LINQ results.

Here is example of this.
In this example we execute two different LINQ Query on DataTable and find two different results object.
After that we find common records from these two results.

I am not that convinced that using data sets and LINQ to objects
makes much sense.

And just like Response.Write should not be used for single
value output in ASP.NET then it should not be used for multi
value output either. There are controls for that. Maybe a
repeater.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top