2009-02-13

GUID Parsing

Late day, last minute "Dur" moment. How to parse a GUID:

string SomeGuid = "0000...0000";

Guid g = new Guid(SomeGuid);

Yeah, apparently that's the easiest way to convert a string to a Guid. Of course, where SomeGuid is actually a Guid, and not a bunch of zeros and periods.

No comments: