Share via


ValueComparer<T>.Equals Method

Definition

Overloads

Equals(Object, Object)

Compares the two instances to determine if they are equal.

Equals(T, T)

Compares the two instances to determine if they are equal.

Equals(Object, Object)

Compares the two instances to determine if they are equal.

public override bool Equals (object left, object right);
public override bool Equals (object? left, object? right);
override this.Equals : obj * obj -> bool
Public Overrides Function Equals (left As Object, right As Object) As Boolean

Parameters

left
Object

The first instance.

right
Object

The second instance.

Returns

true if they are equal; false otherwise.

Applies to

Equals(T, T)

Compares the two instances to determine if they are equal.

public virtual bool Equals (T left, T right);
public virtual bool Equals (T? left, T? right);
override this.Equals : 'T * 'T -> bool
Public Overridable Function Equals (left As T, right As T) As Boolean

Parameters

left
T

The first instance.

right
T

The second instance.

Returns

true if they are equal; false otherwise.

Implements

Applies to