Mid LINQ

Get distinct list of department names?

Get distinct list of department names

var deptNames = employees.Select(e => e.Department).Distinct();

More from LINQ Tutorial

All questions for this course