Object.Equals Method Determines whether the specified Object is equal to the current Object. : System Object Method « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- System Object Method
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));
}
}
Related examples in the same category