IEqualityComparer..::..Equals Method
Determines whether the specified objects are equal.
Namespace:
System.CollectionsAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] bool Equals( Object x, Object y )
<TemplateAttribute> _ Function Equals ( _ x As Object, _ y As Object _ ) As Boolean
[TemplateAttribute] bool^ Equals( Object^ x, Object^ y )
Parameters
- x
- Type: System..::..Object
The first object to compare.
- y
- Type: System..::..Object
The second object to compare.
Return Value
true if the specified objects are equal; otherwise, false.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | x and y are of different types and neither one can handle comparisons with the other. |