Search

Guid.TryParse by Erik Porter

Closed
as Fixed Help for as Fixed

36
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 94072
Opened: 7/11/2004 12:54:54 PM
Access Restriction: Public
2
Workaround(s)
No Guid.TryParse Method
Details (expand)
Product Language
English
Version
Visual Studio 2005 Beta 1
Category
Other
Operating System
Windows XP Professional
Operating System Language
US English
Proposed Solution
Add a Method called TryParse to the Guid Class that takes a String and has a result parameter passed in by reference
Benefits
Faster Development
Other Benefits
Faster Development
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 7/13/2004 at 11:41 AM
tracking as a feature request
Posted by Microsoft on 7/13/2004 at 11:45 AM
tracking as a feature request
Posted by Microsoft on 7/15/2004 at 10:50 AM
Thanks for the suggestion, we'll add this as a consideration for a future release!
Posted by Microsoft on 7/16/2004 at 12:05 PM
Please use parent bug for tracking this issue.
Posted by Microsoft on 7/16/2004 at 3:21 PM
track devdiv schedule - see links tab
Posted by ClarkeRC on 4/25/2008 at 6:14 PM
Shouldn't the work around be more properly written with the Regex as a static field outside of the static method instead of creating a new regex every time the static method is called?
Posted by Microsoft on 6/23/2009 at 4:28 AM
Hi Erik Porter,

I apologize for the long delay; the nature of our releases over the past number of years has made it difficult for us to add such improvements. The good news is that we've finally been able to address this; we've added Guid.TryParse to .NET 4. It should be available in the next public preview release.

Regards,

Justin Van Patten
Program Manager
Common Language Runtime, Base Class Libraries
Posted by IDisposable on 6/23/2009 at 9:46 PM
Now if we could just get an Enum.TryParse, most of my spurious exception catch swallowing would disappear.
Posted by Evgeny0 on 10/2/2009 at 12:02 AM
It doesn't seem to be in Beta 1.
Posted by Microsoft on 10/22/2009 at 10:35 PM
Guid.TryParse and Enum.TryParse<T> are both in .NET 4 Beta 2. Hope this helps!

Regards,

Justin Van Patten
Program Manager
CLR Base Class Libraries