Saturday, September 19, 2009

.NET 4.0 Goodies: Linq to Filesystem

One of the new additions in .NET 4.0 are the new enumerable file and directory API’s. This has really been a problem when you have a large number of files or folders and loading them all into an array at once is a dumb idea. The new API’s return an IEnumerable<> so that you can work with one item at a time. And as we all know Linq and IEnumerable<> are best friends.

I like it!

No comments: