1

Is it possible to select specific number of of cells in an array based on the index?

for example selecting all cells starting from index 5 to index 15.

I know we can do that using loop or array.copy().

But my question is that possible using LINQ ?

If so, can you paste a demo code ?

and what about effeciency ?

1 Answers1

2

It is possible with the following construction:

arr.Skip(5).Take(10);
Ivan Gritsenko
  • 4,166
  • 2
  • 20
  • 34