How does comparison operator works with null int?

According to MSDN – it’s down the page in the “Operators” section:

When you perform comparisons with nullable types, if the value of one of the nullable types is null and the other is not, all comparisons evaluate to false except for !=

So both a > b and a < b evaluate to false since a is null…

Leave a Comment