By default we can not store null values under Values type (int,float,e.t.c). It can be store only under reference type to tell the value for this variable in unknown. So, to overcome this problem in C sharp 2.0 a new set of value type have been chosen known as nullable value type and with the help of this we can store the null values under the value type also.
To declare a value as nullable the type name should be sufix with a question mark (?).
To declare a value as nullable the type name should be sufix with a question mark (?).
No comments:
Post a Comment