Showing posts with label null value test. Show all posts
Showing posts with label null value test. Show all posts

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
}