null coalesce ternary c#

C#
//the null coalescing operator for c# is ??
int? x = null;
int y = 9;
return x ?? y; 
//Will return the value of x if x is not null else return y//Return stirng representation of nullable DateTime
DateTime? x = null;
return x.HasValue == true ? x.Value.ToString() : "No Date";https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-coalescing-operator
Source

Also in C#: