The C# compiler provides you with a bit of sugar so you really are doing this:
Nullable<bool> b = new Nullable<bool>();
Here is the syntactic sugar
bool? b = null;
if (b ?? false)
{
b = true;
}
The C# compiler provides you with a bit of sugar so you really are doing this:
Nullable<bool> b = new Nullable<bool>();
Here is the syntactic sugar
bool? b = null;
if (b ?? false)
{
b = true;
}