Indicates whether this instance and another object are equal.
[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 and only if obj and this instance are the same type and represent the same value; otherwise, false.
Exception Type | Condition |
---|---|
ArgumentNullException | The obj parameter is a null reference (in Visual Basic Nothing). |