What is the difference between Nullable<bool> and bool?
c#
Solution
"A Nullable can be assigned the values true false, or null. The ability to assign null to numeric and Boolean types is especially useful when you are dealing with databases and other data types that contain elements that may not be assigned a value. For example, a Boolean field in a database can store the values true or false, or it may be undefined."
Nullable Types
Problem
When I reverse engineer my classes I get the following: ``` public Nullable<bool> Correct { get; set; } public Nullable<bool> Response { get; set; } ``` I coded: ``` public bool? Correct { get; set; } public bool? Response { get; set; } ``` Can someone tell me if there is any difference between these two. I have not seen the `Nullable<bool>` before and I'm not sure why it does not just create a "bool". Note: I changed my coded to bool? in response to comments by Jon