Object.Equals Method Determines whether the specified Object is equal to the current Object.
using System; class Program { static void Main(string[] args) { Object Obj1 = new Object(); Object Obj2 = new Object(); Console.WriteLine(Obj1.Equals(Obj2)); Obj2 = Obj1; Console.WriteLine(Obj1.Equals(Obj2)); } }