LINQ // Skip and Take

Skip and Take^ are methods used to implement pagination or limit the number of elements returned by a query.

Skip is used to skip a specified number of elements from the beginning of a collection and return the remaining elements. "Take" is used to retrieve a specified number of elements from the beginning of a collection.

Since C# 8, you can also use the Range object with Take. The following picture demonstrates how concepts work together.

Linq image

7
An error has occurred. This application may no longer respond until reloaded. Reload x