All Tags »
nullabletypes
Sorry, but there are no more tags available to filter with.
-
Please read the MSDN docs on nullalbe types.
-
Are you checking the HasValue property of the nullable type before trying to use the value?Code:1 if (myObject.MyIntProperty.HasValue)
2 {
3 int myValue = myObject.MyIntProperty.Value;
4 }
5