Friday, 15 June 2012

Generate Guid in c#

Guid guidNewID = Guid.NewGuid();

Convert String to guid:

string strValue = guidNewID.tostring();

Guid guidValue = new Guid(strValue);

No comments:

Post a Comment