27 December 2011

Interesting Tips: Guid without dash

Easy way to return a GUID without dash:-
Guid.ToString("N")
Guid id = new Guid(string here); //back to guid

Guid test=Guid.NewGuid();
Console.WriteLine(test.ToString("N"));

Console.WriteLine(test.ToString()); 

0 comments :

Post a Comment