mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 04:32:05 +00:00
2989c163a8
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
19 lines
404 B
C#
19 lines
404 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();
|
|
}
|
|
}
|
|
}
|