Search code examples
c#linqlistentityienumerable

select n records from nth record in linq


I am searching for something like LIMIT(10, 10) <- thats how it works in php

Products = Products.Take(10).ToList();

That's not what i want because I want to skip first 10 records .

does anybody know how i can do this?


Solution

  • Use Skip

    Products = Products.Skip(10).Take(10).ToList();