Assigning null value to nullable value type is equal to new Nullable<T> in c#?
I've the following code:
int? num = null;
According to the this answer:
The nullable type is a struct consisting of two fields: a bool and a T. When the value is null, the bool is false and the T has the default value. When the value is not null, the bool is true.
The default value for value types is set for the Value field in Nullable<T> struct. ^
When I use the int? num = null, the num is equal to new Nullable<int>(); and default value 0 is set for the value?