If the variable is of a reference type, a value of Nothing is a null value. : Nullable « Data Type « VB.Net Tutorial






Module Module1

    Sub Main()

        Dim testObject As Object
        testObject = Nothing

        Dim tc As New TestClass
        tc = Nothing
    End Sub

    Class TestClass
        Public field1 As Integer
    End Class
End Module








2.48.Nullable
2.48.1.Assigning Nothing to a variable sets it to the default value for its declared type.
2.48.2.Nullable(Of T).GetValueOrDefault methods.
2.48.3.If the variable is of a reference type, a value of Nothing is a null value.