Mid LINQ

Match employees with same salary?

Match employees with same salary

var duplicates = employees

.GroupBy(e => e.Salary)

.Where(g => g.Count() > 1)

.SelectMany(g => g);

More from LINQ Tutorial

All questions for this course