Apparently Nullable<int> and int? are equivalent in value. Are there any reasons to choose one over the other?
Nullable<int>
int?
Nullable<int> a = null; int? b = null; a == b; // this is true
No difference.
int? is just shorthand for Nullable<int>, which itself is shorthand for Nullable<Int32>.
Nullable<Int32>
Compiled code will be exactly the same whichever one you choose to use.
2.1m questions
2.1m answers
60 comments
57.0k users