Checking for “null” Guids

In .NET a Guid cannot be null (unless you use the ? qualifier). However you may still want to check if a Guid has been set or not. For this you can use Guid.Empty which looks for an all-zero Guid.

Viewing 2 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus