Uninitialised Guids

Hi,

how can i programmatically tell if a Guid has been intialised?
cossy74Asked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
if (guid != Guid.Empty)
{
}

Bob
0
 
DarkoLordCommented:
Do you mean something like this?

if (guid != null)
{
 // all good
}
0
 
cossy74Author Commented:
DarkoLord: that would only work if you could initialise the Guid to null, which i cannot
0
 
DarkoLordCommented:
How can you use it without it being initalized/assigned then?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.