Statement 1
If Not IsNothing(var1) Then
Do something
End If
Statement 2
If Not var2 Is Nothing Then
Do something
End If
Dim value As Integer
If value Is Nothing Then...
will not compile, and the compiler will raise the error "'Is' operator does not accept operands of type 'Integer'. Operands must be reference or nullable types." If Not e.Value Is Nothing
or If Not IsDBNull(e.Value)
If Not e.Value Is Nothing
If var1 = ""
If Not var1 Is Nothing Then
Is a continuation from VB6 where there wasn't an "IsNot," and so this was the only way to determine if a variable was Nothing. They two statements above serve the same purpose. the IsNot makes it easier to read and understand.