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
what is c# command?
Is string nullable c#?
What are native methods?
Define satellite Assembly in .NET?
Give an example of removing an element from the queue?
What does dbml mean in texting?
Explain the process of Serialization?
Can a struct inherit from another struct or class in c#?
Explain About stateless and state full web service
Difference between debug.write and trace.write?
In howmany ways can you deploy an assembly?
What is private class in c#?
Can a dictionary have the same key?
What is an icollection in c#?
What issues can be faced while delivering code?