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>


Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector

Static Fields

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


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.