Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)

Hi

I have a question that might sound simple, but I don't use LINQ that much so...

I need to write a simple query that returns 'n' elements that starts on index 'm' from an array. Something like extension method Take<>, but with extra argument 'StartIndex'

Thanks for your time,
Uros Bregar

Posted
Updated 25-Aug-09 10:12am
v2

1 solution

C#
.Skip(m).Take(n)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900