Created
June 25, 2013 17:29
-
-
Save wtarr/5860469 to your computer and use it in GitHub Desktop.
LINQ list join
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var query = from o1 in list1 | |
join o2 in list2 | |
on o1.common equals o2.common | |
select new | |
{ | |
o1.name, | |
o2.address, | |
o2.phone | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment