guid.empty
00000000-0000-0000-0000-000000000000
empty guid
Guid newId = Guid.Empty; // 00000000-0000-0000-0000-000000000000
guid.empty
// Create a GUID and determine whether it consists of all zeros.
Guid guid1 = Guid.NewGuid();
Console.WriteLine(guid1);
Console.WriteLine($"Empty: {guid1 == Guid.Empty}\n");
// Create a GUID with all zeros and compare it to Empty.
var bytes = new Byte[16];
var guid2 = new Guid(bytes);
Console.WriteLine(guid2);
Console.WriteLine($"Empty: {guid2 == Guid.Empty}");
// The example displays output like the following:
// 11c43ee8-b9d3-4e51-b73f-bd9dda66e29c
// Empty: False
//
// 00000000-0000-0000-0000-000000000000
// Empty: True
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us