Is there any difference between type? and Nullable<type>?

MojoFilter picture MojoFilter · Sep 11, 2008 · Viewed 41.4k times · Source

In C# are the nullable primitive types (i.e. bool?) just aliases for their corresponding Nullable<T> type or is there a difference between the two?

Answer

Steve Morgan picture Steve Morgan · Sep 11, 2008

If you look at the IL using Ildasm, you'll find that they both compile down to Nullable<bool>.