aditya


{ City }
< Country > india
* Profession *
User No # 13405
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 30
Users Marked my Answers as Wrong # 7
Questions / { aditya }
Questions Answers Category Views Company eMail




Answers / { aditya }

Question { Wipro, 48992 }

can we assign null value to value type in c#?


Answer

Nullable type is introduced in .NET 2.0. Before 2.0 it was
not possible to assign null to value types.
This was possible with the introduction of Generics in 2.0
and the it would be something like this...

System.Nullable x = new System.Nullable;

or

int? salary = null (new type modifier in 2.0)

Is This Answer Correct ?    30 Yes 7 No