# Reference Equality Comparer Here's a C# implementation of a .NET comparer that uses simple reference comparison. Note the `GetHashCode` implementation here which returns the memory address (I believe). ```csharp using System.Collections.Generic; using System.Runtime.CompilerServices; public class ReferenceEqualityComparer : IEqualityComparer<object> { bool IEqualityComparer<object>.Equals(object? x, object? y) => ReferenceEquals(x, y); int IEqualityComparer<object>.GetHashCode(object? obj) => RuntimeHelpers.GetHashCode(obj); } ```