Null Coalescing , . , , , .
, , .
bool? any = this.ViewState["any"] as bool?;
if (any == null)
return null;
return any.Value && this.SomeBool;
- -
Person contact = Mother ?? Father ?? FirstSibling;
+ , :
Person contact = Mother;
if (contact == null)
contact = Father;
if (contact == null)
contact = FirstSibling;