David, After pondering what you mean, found these two that made it clear: http://msdn.microsoft.com/en-us/library/bb546159.aspx http://msdn.microsoft.com/en-us/library/dd383458.aspx
Thank you Dean and Greg, Regards Arjang On 2 October 2011 14:44, David Kean <[email protected]> wrote: > A Linq query over what? The advantage of these methods over the other GetXXX > methods is that you don't need to wait for all the results to be retrieved > from the file system to start getting results. > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Arjang Assadi > Sent: Saturday, October 01, 2011 8:35 PM > To: ozDotNet > Subject: Re: In praise of DirectoryInfo Framework 4 > > Greg, > > What's the significance of these? I thought all of these was already > accessible with a simple LINQ query, What am I missing ? > > Regards > > Arjang > > On 2 October 2011 11:39, Greg Keogh <[email protected]> wrote: >> 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 >> >> DirectoryInfo.EnumerateFiles >> >> DirectoryInfo.EnumerateFileSystemInfos >> >> >> >> 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 >> >> >> >> > >
