Home Linq 'Join' example
Post
Cancel

Linq 'Join' example

Example

1
2
3
4
var joined = from Item1 in list1
             join Item2 in list2
             on Item1.Id equals Item2.Id // join on some property
             select new { Item1, Item2 };
This post is licensed under CC BY 4.0 by the author.