G
Guido Kraus
I tried this VB.NET 2003 (.Net runtime 1.1):
Dim o As Object = DirectCast(Nothing, HashTable)
If IsNothing(o) Then
Debug.WriteLine("Nothing")
Else
Debug.WriteLine("Something")
End If
Guess what: o is not Nothing!
Is this a bug or a feature? By the way: CType(Nothing, HashTable) returns
Nothing as I would expect.
Guido
Dim o As Object = DirectCast(Nothing, HashTable)
If IsNothing(o) Then
Debug.WriteLine("Nothing")
Else
Debug.WriteLine("Something")
End If
Guess what: o is not Nothing!
Is this a bug or a feature? By the way: CType(Nothing, HashTable) returns
Nothing as I would expect.
Guido