The journal of Paul M. Watson.

Tuesday, April 11, 2006

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.


Anonymous Peter Guthrie said...

no idea what a 'guid' is, but in Scottish (from Auld Scots probably) 'guid' is how you say/spell 'good'.

3:05 PM

Blogger Paul Watson said...

hehe. Though techies tend to pronounce Guid as "goo-id". A Guid is a Globally Unique Identifier. It is a way of getting a 32 character ID that nobody else on the planet should duplicate.

3:26 PM


Post a Comment

Links to this post:

Create a Link

<< Home