Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

check null type

int? b = 10;
if (b.HasValue)
{
    Console.WriteLine($"b is {b.Value}");
}
else
{
    Console.WriteLine("b does not have a value");
}
 
PREVIOUS NEXT
Tagged: #check #null #type
ADD COMMENT
Topic
Name
8+2 =