How do you page through a collection in LINQ given that you have a startIndex
and a count
?
It is very simple with the Skip
and Take
extension methods.
var query = from i in ideas select i; var paggedCollection = query.Skip(startIndex).Take(count);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With