how to make a object nullable using ? code example
Example: set int to null c#
// Nullable types add null as a valid value in addition to the type range
Nullable<int> i = null;
// Can also be written as:
int? i = null;
// Nullable types add null as a valid value in addition to the type range
Nullable<int> i = null;
// Can also be written as:
int? i = null;