Mid LINQ

Get top 3 highest-paid employees?

Get top 3 highest-paid employees

var top3 = employees

.OrderByDescending(e => e.Salary)

.Take(3);

More from LINQ Tutorial

All questions for this course