Table of Contents

Class Utils.ObjectReferenceEqualityComparer<T>

Namespace
LinqToDB.Common
Assembly
linq2db.dll
public class Utils.ObjectReferenceEqualityComparer<T> : IEqualityComparer<T> where T : notnull

Type Parameters

T
Inheritance
Utils.ObjectReferenceEqualityComparer<T>
Implements
Extension Methods

Fields

Default

public static IEqualityComparer<T> Default

Field Value

IEqualityComparer<T>

Methods

Equals(T?, T?)

Determines whether the specified objects are equal.

public bool Equals(T? x, T? y)

Parameters

x T

The first object of type T to compare.

y T

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(T)

Returns a hash code for the specified object.

public int GetHashCode(T obj)

Parameters

obj T

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.