I am trying to compare two type variables nullable(of boolean)in VB.NET 2010. One of the variables is False and the other is Nothing. Now I expected the following expression to evaluate to true, but it is not:
Dim var1 as nullable(of boolean) = False
Dim var2 as nullable(of boolean)
var2 = Nothing
If var1 <> var2 Then
msgbox "they are different"
End If
Why can't I see my MsgBox? How to compare two NULL (boolean) values?
source
share