Mid LINQ

Join two lists with different types?

Join two lists with different types

var result = from e in employees

join d in departments on e.Department equals d.Name

select new { e.Name, DeptLocation = d.Location };

More from LINQ Tutorial

All questions for this course