How to get the GUID in C#?

Poster
Posted by Poster under C# category on | Views : 6361
GUID (Globally Unique Identifier) is a 128-bit integer that can be used to uniquely identify something. You can guarantee that every time you generate the GUID it will be unique.

To get the GUID, you can use following code

string unique =  System.Guid.NewGuid().ToString();


Thanks

Comments or Responses

Login to post response