Convert String to GUID

Sometime , we need store GUID as string.

But how to convert string to GUID.

Just do like below:

var guid = new GUID(yourStringGUID).

the wrong way is :  var guid = (GUID)yourStringGuid.

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)