can we assign null value to value type in c#?
Answer Posted / aditya
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<int> x = new System.Nullable<int>;
or
int? salary = null (new type modifier in 2.0)
| Is This Answer Correct ? | 30 Yes | 7 No |
Post New Answer View All Answers
Can we overload the main method in c#?
Why interface is required?
What are strongly typed objects?
Which technology is best for desktop application?
Why do we use yield in c#?
What is argument in c#?
What is the default value of guid in c#?
Can a string be null c#?
What debugging tools come with the .NET ssSDK?
What is the difference between method overriding and method overloading?
What is the purpose of the integer parse method the decimal parse method?
What is hash c#?
Does constructor return any value in c#?
Explain the difference between and xml documentation tag?
Explain about Oops concept