How can I take elements by range with lambda and linq?
For example:
I have a table with 54 elements. I just want to take elements from possition 1-10, or 10-20 or 20-30 etc - generally by some numeric range.
How can I do this?
List<int> list = new List<int>();
IEnumerable<int> interval = list.Skip(a).Take(b);
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