ozan
ozan 15 Jan 2016, 10:44
found the answer @ http://stackoverflow.com/questions/15491889/how-to-assign-null-value-to-non-nullable-type-variable-in-c
How to assign Null value to Non-Nullable type variable in C#?
You have to declare it as a nullable type:
double? x; x = null;
Non nullable types like double can not be null
ozan 11 Nov 2015, 03:54
I agree. Would be a giant leap for coders
ozan
15 Jan 2016, 10:44
found the answer @ http://stackoverflow.com/questions/15491889/how-to-assign-null-value-to-non-nullable-type-variable-in-c
How to assign Null value to Non-Nullable type variable in C#?
You have to declare it as a nullable type:
Non nullable types like double can not be null
@ozan