using System.Collections.Generic; using System.Runtime.CompilerServices; namespace ILRuntime.Other { class ByReferenceKeyComparer : IEqualityComparer { public bool Equals(T x, T y) { return object.ReferenceEquals(x, y); } public int GetHashCode(T obj) { return RuntimeHelpers.GetHashCode(obj); } } }