Mid LINQ

Skip top 2 highest salaries and take next 2?

Skip top 2 highest salaries and take next 2

var result = employees

.OrderByDescending(e => e.Salary)

.Skip(2)

.Take(2);

More from LINQ Tutorial

All questions for this course