Object.Equals Method tells whether the specified Object is equal to the current Object.
Imports System
Imports System.IO
Class Program
Public Shared Sub Main(ByVal args As String())
Dim Obj1 As New Object()
Dim Obj2 As New Object()
Console.WriteLine(Obj1.Equals(Obj2))
Obj2 = Obj1
Console.WriteLine(Obj1.Equals(Obj2))
End Sub
End Class