' null in VB.NET is Nothing
' null = Nothing
Imports System
Public Class Test
Public Shared Sub Main()
Dim s As String = Nothing
Console.WriteLine("s = " & s)
If s = Nothing Then
Console.WriteLine("Nothing")
End If
If String.IsNullOrEmpty(s) Then
Console.WriteLine("Null Or Empty")
End If
End Sub
End Class
' run:
'
' s =
' Nothing
' Null Or Empty
'