set int to null c#

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;
Source

Also in C#: