leeniemonster
2
Q:

c# nullable

// 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;
0
double? pi = 3.14;
char? letter = 'a';

int m2 = 10;
int? m = m2;

bool? flag = null;

// An array of a nullable value type:
int?[] arr = new int?[10];
0

New to Communities?

Join the community