Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Saturday, August 15, 2009

How to Create GUID from a String

This is an easy way, but esoteric task, to create a GUID from a string:


Guid g = new Guid(string);

Reference: http://www.devnewsgroups.net/dotnetframework/t2650-convert-string-guid.aspx

No comments: