Compares two boxed objects.
[Visual Basic] Overrides Public Function Equals( _ ByVal obj As Object _ ) As Boolean [C#] public override bool Equals( object obj ); [C++] public: override bool Equals( Object* obj ); [JScript] public override function Equals( obj : Object ) : Boolean;
true if both the object and this instance are the same, otherwise false.
The Equals method is used to compare the current instance against an object provided. If both are character objects and both contain the same character, then true is returned. Otherwise, false is returned.