Samstag, 30. Juni 2012

Empty Guid

Some times I need a empty Guid. The first purpose of this blog entry is therefore to find my empty guid quicker .-)

If you want to create a empty Guid with .NET in C# there are two ways:

Guid myGuid = new Guid();

This creates the exact same empty Guid ( 00000000-0000-0000-0000-000000000000 ) as:

Guid myGuid = Guid.Empty;