|
Author: Jenny Nguyen
|
|
How to compare object using Not variable1 Is Nothing and variable1 IsNot Nothing in VB.NET. This can be confusing but once you get the syntax right it should be ok. I was trying to compare the object and trying to determing if object is null or not. Method 1: If variable1 IsNot Nothing Then
If Not variable1 Is Nothing Then IsNot can also use to compare the two object to determine if they are the same object.
|