3
Reply

What is Nullable Types in C#?

Vivek Kumar

Vivek Kumar

Feb 08, 2016
390
0

    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

    Samatha Reddy
    March 16, 2017
    1

    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

    Ayappan Alagesan
    February 12, 2017
    0

    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;

    Vivek Kumar
    February 08, 2016
    0