Mid LINQ

Skip first and last employee?

Skip first and last employee

var middle = employees

.Skip(1)

.Take(employees.Count - 2);

Follow :

More from LINQ Tutorial

All questions for this course