Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# null conditional

//Return stirng representation of nullable DateTime
DateTime? x = null;
return x.HasValue == true ? x.Value.ToString() : "No Date";
Source by www.informit.com #
 
PREVIOUS NEXT
Tagged: #null #conditional
ADD COMMENT
Topic
Name
2+8 =