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

  • Thread starter Thread starter Jayesh Sorathia
  • Start date Start date
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
 
Back
Top