Ryujinx/src/Ryujinx.Common/ReferenceEqualityComparer.cs
2023-04-27 23:51:14 +02:00

19 lines
407 B
C#

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