Compare Guid with default or empty?
.net, c#
Solution
Since `Guid.Empty == default(Guid)` it does not really matter, but I would prefer `Guid.Empty` for readability.
Problem
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.