Search code examples
c#.netnullable

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


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?


Solution

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