0

Linq to Objects – join or intersect

Thanks to Linq to objects we can have a more sql like coding style in c#. For somebody that has actual sql knowledge, this comes in very handy.

But it seems that several coding methods perform the same task and gives the same result.
So what coding syntax would you prefer?

For example, assume you want to know which items are given in 2 sets?
You could get this list through following code.

 

Technorati Tags: ,

Depechie

Leave a Reply

Your email address will not be published. Required fields are marked *