I have a database query which will either return NULL or a boolean (bit) value.
NULL
I wish to store this value in a variable of type Nullable<
Nullable<
while (reader.Read()) { bool? IsRestricted = (reader.IsDBNull(reader.GetOrdinal("IsRestricted"))) ? (null) : ((bool)reader.GetOrdinal("IsRestricted"))); }