using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Ryujinx.Common { public class ReferenceEqualityComparer : IEqualityComparer where T : class { public bool Equals(T x, T y) { return x == y; } public int GetHashCode([DisallowNull] T obj) { return obj.GetHashCode(); } } }