ObjectReferenceEqualityComparer.IEqualityComparer<Object>.Equals Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Determines whether the specified object instances are considered equal.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Private Function Equals ( _
    x As Object, _
    y As Object _
) As Boolean Implements IEqualityComparer(Of Object).Equals
'Usage
Dim instance As ObjectReferenceEqualityComparer 
Dim x As Object 
Dim y As Object 
Dim returnValue As Boolean 

returnValue = CType(instance, IEqualityComparer(Of Object)).Equals(x, _
    y)
bool IEqualityComparer<Object>.Equals(
    Object x,
    Object y
)
private:
virtual bool Equals(
    Object^ x, 
    Object^ y
) sealed = IEqualityComparer<Object^>::Equals
private abstract Equals : 
        x:Object * 
        y:Object -> bool  
private override Equals : 
        x:Object * 
        y:Object -> bool
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Return Value

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

Implements

IEqualityComparer<T>.Equals(T, T)

See Also

Reference

ObjectReferenceEqualityComparer Class

System.Data.Entity.Infrastructure Namespace