Deepak  Kamboj
What are nullable types in .NET?
By Deepak Kamboj in ASP.NET on Jun 14 2013
  • Tushar Kumar
    Nov, 2014 7

    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;

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS