tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

IEnumerable<string> result for some methods in System.IO

6 Mar 2010 .NET, Programming in general

The .NET Framework 4 includes some nice new methods in System.IO namespace. There’s a lot of methods on Directory class etc. returning string[]. That’s OK until you try to enumerate directory with thousands of files (for example). Then you’re waiting for complete result even is you just need couple of first item. The new EnumerateXxx methods are solving this as these are returning IEnumerable<string> (i.e. EnumerateFiles).

I’m looking forward to use these in ID3 renamer when .NET Framework 4 will be released.