Exercise: Write a Pagination Method

Write a method to display results on separate pages.

We'll cover the following

Write a Paginate method

Now, it’s your turn!

Let’s “reinvent the wheel” to practice Take, Skip, and extension methods. For this exercise, write a Paginate method to display a large catalog of movies in pages, similar to the same way Google displays search results in pages.

Follow the instructions in the comments to complete this exercise. Fill in the body of the Paginate method in the EnumerableExtensions.cs file.

Get hands-on with 1200+ tech skills courses.