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 };
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 };