Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
See more:
Hi,

I have a array with 50 Indexes. I need to take the elements from 20 to 30 indexes. How to do it using LINQ. To avoid using looping.
Posted
Updated 9-Sep-13 2:33am
v2

You don't even need LINQ for thatm see, for instance this Stack Overflow question: "Selecting a range of items inside an array in C#"[^]
 
Share this answer
 
This may help

link





www.InsightSoftech.com
 
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