Created
February 2, 2017 09:03
-
-
Save kmteam/8f3106f01a11d7ca1e54ab8f981e419d to your computer and use it in GitHub Desktop.
Pagination magic in LINQ!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pagedItems = this.DataCollection.Skip((this.CurrentPageIndex -1) * this.ItemsPerPage).Take(this.ItemsPerPage).ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment