In C# are the nullable primitive types (i.e. bool?
) just aliases for their corresponding Nullable
type or is there a difference between th
No difference. Take a look here: http://msdn.microsoft.com/en-us/library/1t3y8s4s.aspx
"The syntax T? is shorthand for Nullable, where T is a value type. The two forms are interchangeable."
Null primitives are just regular primitives wrapped in Nullable. Any appearances to the contrary are just the compiler and syntactical sugar.
If you look at the IL using Ildasm, you'll find that they both compile down to Nullable<bool>
.