Guid is a value type, so a variable of type Guid can’t be null to start with. If you want to know if it’s the same as the empty guid, you can just use:
if (guid == Guid.Empty)
Guid is a value type, so a variable of type Guid can’t be null to start with. If you want to know if it’s the same as the empty guid, you can just use:
if (guid == Guid.Empty)