C# – How to use Guids in C#

cguid

This Code:

Something = new Guid() 

is returning:

00000000-0000-0000-0000-000000000000

all the time and I can't tell why? So, why?

Best Answer

You should use Guid.NewGuid()