Folks, I just found by accident that the following methods were added in
Framework 4. They slipped in without any advertising that I saw:

 

DirectoryInfo.EnumerateDirectories
<http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.enumeratedi
rectories.aspx> 

DirectoryInfo.EnumerateFiles
<http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.enumeratefi
les.aspx> 

DirectoryInfo.EnumerateFileSystemInfos
<http://msdn.microsoft.com/en-us/library/dd383504.aspx> 

 

These solve the miserable old problem with previous versions where you would
block while the collections of results were loaded. I'm going to rejig some
code and apps right now to take advantage of this.

 

Cheers,

Greg

 

 

Reply via email to