c# inline variable null check code example
Example 1: c# null conditional
//Return stirng representation of nullable DateTime
DateTime? x = null;
return x.HasValue == true ? x.Value.ToString() : "No Date";
Example 2: ? : in c#
is this condition true ? yes : no