1
Reply

What are nullable types in .NET?

Deepak  Kamboj

Deepak Kamboj

Jun 14, 2013
910
0

    The HasValue property returns true if the variable contains a value, or false if it is null. The Value property returns a value if one is assigned. ... The default value for HasValue is false. ... You can also use the == and != operators with a nullable type, as shown in the following example: if (x != null) y = x;

    Tushar Kumar
    November 07, 2014
    0