By accident initially but then looked it up here
http://msdn.microsoft.com/en-us/library/ms171868.aspx for other goodies also

On Mon, Oct 3, 2011 at 1:20 PM, Arjang Assadi <arjang.ass...@gmail.com>wrote:

> Thank you Tom,
>
> Did you find it by coincidence or have a list of these goodies somewhere?
>
> Regards
>
> Arjang
>
> On 3 October 2011 10:50, Tom Rutter <therut...@gmail.com> wrote:
> > Guid.TryParse - about time! :-)
> > On Sun, Oct 2, 2011 at 12:44 PM, David Kean <david.k...@microsoft.com>
> > wrote:
> >>
> >> Glad you like them. J
> >>
> >>
> >>
> >> It’s good to sometimes to do those small things that make things a
> little
> >> bit nicer, some other examples Guid.TryParse, Version.TryParse,
> >> Enum.TryParse, all new for .NET 4.0.
> >>
> >>
> >>
> >> From: ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com]
> >> On Behalf Of Greg Keogh
> >> Sent: Saturday, October 01, 2011 5:40 PM
> >> 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
> >>
> >> 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
> >>
> >>
> >>
> >>
> >
>

Reply via email to