Share via


Equals Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether the specified objects are equal.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Function Equals ( _
    x As Object, _
    y As Object _
) As Boolean
bool Equals(
    Object x,
    Object y
)
bool Equals(
    Object^ x, 
    Object^ y
)
abstract Equals : 
        x:Object * 
        y:Object -> bool 
function Equals(
    x : Object, 
    y : Object
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if the specified objects are equal; otherwise, false.

Remarks

Implement this method to provide a customized equality comparison for objects.

.NET Framework Security

See Also

Reference

IEqualityComparer Interface

System.Collections Namespace