Class ReferenceEqualityComparer<T>

A equalityComparer for a reference type that uses reference equality for equality and the hash code from object as hash code.
Type parameters:
TThe item type. Must be a reference type.
Constraints:
T : class

Implements

System.Collections.Generic.IEqualityComparer<T>

Bases

object

Property overview

Default

Method overview

Equals(T i1, T i2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(T item) ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Property details

S ReferenceEqualityComparer<T> DefaultAccess: Read-Only

Value:

Method details

F bool Equals(T i1, T i2)
Returns:
Parameters:
i1:
i2:
F int GetHashCode(T item)
Returns:
Parameters:
item: