Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Array substring in deferred execution

Tags:

c#

linq

Is there any way in LINQ to get a subset of an array in deferred execution (meaning copy at enumeration time, not build time)?

like image 477
Dani Avatar asked Jun 07 '11 21:06

Dani


1 Answers

Well, a simple way of taking a part of LINQ expression is Skip(n).Take(m).

like image 166
Gleno Avatar answered Sep 25 '22 13:09

Gleno