"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
In VB 2005 you can use generics ('Nullable') to create a nullable boolean
type ('Nullable(Of Boolean)'.
I tried that with VB 2005 but I didn't get the expected results. What am I
missing?
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim x As Nullable(Of Boolean)
MsgBox(String.Format("IsNothing( x ) = {0:G}", IsNothing(x)))
End Sub
IsNothing(x) is returning False, not the True that I expected. I also tried
declaring x with:
Dim x As Nullable(Of Boolean) = Nothing
but I got the same result (False).