mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-25 02:30:11 +01:00
20 lines
407 B
C#
20 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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|