Compare Guid with default or empty?
07:30 29 Apr 2013

What is the right way to check whether a Guid is empty?

First method:

Guid value;
// ...
if (value != Guid.Empty)

or second method:

if (value != default(Guid))

I think the second method is better, but I can't explain why.

c# .net