What is Nullable Types in C#?
By in on Feb 08 2016
• Mar, 2017 16

Value types can not store the null values,nullable feature added in c#2.0.now onwords we can able to add null values to value types. ex: int x=null; \\invalid int? x = null; \\ valid

• 1
• Dec, 2019 30

reference type
ex:string str=”null”;

• 0
• Feb, 2017 12

mostly value types cannot be assigned as null.(Eg:int a =null) To break this c# implemented null-able types so that we can assign value types as null.(Eg : int? a) this specifies a might be null

• 0
• Feb, 2016 8

Variable types does not hold null values so to hold the null values we have to use nullable types. So nullable types can have values either null or other values as well.Eg: Int? a= null;

• 0