ReferenceEqualityComparer<T>

Compares objects by reference only, ignoring equality operators completely. This is used by the property tree reference dictionaries to keep track of references.

namespace Sirenix.Utilities
{
public class ReferenceEqualityComparer<T> : IEqualityComparer<T>
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Fields

Return Type Definition Description
ReferenceEqualityComparer<T> Default A default, cached instance of this generic variant of the reference equality comparer.

Methods

Return Type Definition Description
bool Equals(T, T) Returns true if the object references are equal.
int GetHashCode(T) Returns the result of the object's own GetHashCode method.