Profile

Click to view full profile
Hi, I'm Veerapat Sriarunrungrueang, an expert in technology field, especially full stack web development and performance testing.This is my coding diary. I usually develop and keep code snippets or some tricks, and update to this diary when I have time. Nowadays, I've been giving counsel to many well-known firms in Thailand.
view more...

Sunday, June 17, 2012

Create Global Unique Identifier (GUID) in C#

Similar to the previous post, Microsoft introduced another standard called Global Unique Identifier to create a unique key in order to use in applications.
It is pretty much easy as following lines of code:
Guid id = new Guid();
id = Guid.NewGuid();
Console.WriteLine(id.ToString());
Now, you can enjoy creating GUID for your applications ^^.

No comments:

Post a Comment