In C# are the nullable primitive types (i.e. bool?) just aliases for their corresponding Nullable type or is there a difference between th
bool?
Nullable
To access the value of the bool? you need to do the following:
bool? myValue = true; bool hasValue = false; if (myValue.HasValue && myValue.Value) { hasValue = true; }
Note you can't just do:
if (myValue) { hasValue = true; }