2023-12-04 14:17:13 +01:00
|
|
|
using System.Collections.Generic;
|
2020-02-06 21:49:26 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|