Determines whether the specified Object is equal to the current Object.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public override bool Equals( Object obj )
Public Overrides Function Equals ( _ obj As Object _ ) As Boolean
public: virtual bool Equals( Object^ obj ) override
public boolean Equals( Object obj )
Parameters
- obj (Object)
- The Object to compare with the current Object.
Return Value
true if the specified Object is equal to the current Object; otherwise, false.
Exceptions
Exception | Condition |
---|---|
NullReferenceException | The obj parameter is null.
|