Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

If the variable is of a reference type, a value of Nothing is a null value

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