How to

create guid from string

Published: 9. October 2011 | Updated: 9. October 2011
License: Microsoft Public License (MS-PL)
Categories: Converting, Framework
Tags: C#
Was this snippet helpful for you? YESYES / NONO
string guidAsString = "466b86d1-b57b-48a4-a1de-10ba700923e1";

Guid guid = new Guid(guidAsString);

// or

Guid guid = Guid.Parse(guidAsString);
Send us feedback about this snippet »



Related Snippets: