Using Linq to get the last N elements of a collection?
Asked 07 September, 2021
Viewed 457 times
  • 52
Votes

Given a collection, is there a way to get the last N elements of that collection? If there isn't a method in the framework, what would be the best way to write an extension method to do this?

19 Answer