Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2005

Tip: Looking for answers? Try searching our database.

Why doesn't System.Guid have a Parse method?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PIEBALD - 02 Nov 2005 21:52 GMT
Why doesn't System.Guid have a Parse method when SqlGuid does?

It's simple enough to do:

System.Guid g = System.Data.SqlTypes.SqlGuid.Parse ( s ).Value ;

But why should I need to?
Henning Krause [MVP - Exchange] - 02 Nov 2005 22:00 GMT
Hello,

try
Guid g = new Guid("guid goes here");

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de

> Why doesn't System.Guid have a Parse method when SqlGuid does?
>
[quoted text clipped - 3 lines]
>
> But why should I need to?
PIEBALD - 02 Nov 2005 22:31 GMT
OK, but that doesn't actually answer the question.
And perhaps I should now ask why SqlGuid _does_ have a Parse method when it
already has a constructor that takes a string?
William Stacey [MVP] - 02 Nov 2005 23:26 GMT
I agreee. It should.

Signature

William Stacey [MVP]

> Why doesn't System.Guid have a Parse method when SqlGuid does?
>
[quoted text clipped - 3 lines]
>
> But why should I need to?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.