Topics
24 Apr 2017, 06:17
 2403
 2
Replies

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

ozan
11 Nov 2015, 03:54

I agree. Would be a giant leap for coders


@ozan