ObjectReferenceEqualityComparer

An IEqualityComparer that uses reference equality instead of value equality when comparing two object instances.

Declaration
public sealed class ObjectReferenceEqualityComparer : IEqualityComparer<object>, IEqualityComparer

Determines whether the specified object is equal to the current object.

Determines whether two object references refer to the same object instance.

Serves as the default hash function.

Returns a hash code for the specified object. The returned hash code is based on the object identity, not on the contents of the object.

Gets the Typearrow-up-right of the current instance.

Creates a shallow copy of the current Objectarrow-up-right.

Returns a string that represents the current object.

circle-info

This method has been backported from a future framework (.NET 5), to avoid possible conflicts the class name has been adjusted from ReferenceEqualityComparerarrow-up-right.

Last updated