I thought these were available in v3.5 ? 

 

  _____  

Ian Thomas
Victoria Park, Western Australia

  _____  

From: [email protected] [mailto:[email protected]]
On Behalf Of Greg Keogh
Sent: Sunday, October 02, 2011 8:40 AM
To: 'ozDotNet'
Subject: In praise of DirectoryInfo Framework 4

 

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