how to get a list of files / folders as an IEnumerable and not an array

Posted by Matt Peters on Stack Overflow See other posts from Stack Overflow or by Matt Peters
Published on 2010-04-22T17:07:44Z Indexed on 2010/04/22 17:13 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

how to get a list of files / folders as an IEnumerable and not an array?

the reason I want to do this is a have many folders with 20,000+ files in them, and i need to loop through all of them but do not want to wait for them to be compiled into an array. but just want to go through one at a time.

also i'm using .net 3.5 not v4

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET