Paging a collection with LINQ
A couple of months back I created a post concerning Fluent Interfaces and also LINQ which made use of an Extension Method on
IQueryable<T> and also an additional class to give the adhering to all-natural means of paginating a LINQ collection.
var query = from i in ideas select i; var pagedCollection = query.InPagesOf(10); var pageOfIdeas = pagedCollection.Page(2);
You can get the code from the MSDN Code Gallery Page : Pipelines, Filters, Fluent API and LINQ to SQL.