what is the nullable integer and where can it be used?
The nullable integer int?
or Nullable<int>
is a value type in C# whose value can be null
or an integer value. It defaults to null
instead of 0
, and is useful for representing things like value not set
(or whatever you want it to represent).