Mid LINQ

Get bottom 2 lowest-paid employees?

Get bottom 2 lowest-paid employees

var bottom2 = employees

.OrderBy(e => e.Salary)

.Take(2);

More from LINQ Tutorial

All questions for this course