Monday, March 28, 2016

Test if Guid variable is null

Another test for Guid variable.  .Net Framework will initialize variable when it is declared.
Test for the default condition.


if (test.guid == Guid.Empty)
{
//your condition
}

No comments:

Post a Comment