mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-16 21:31:45 +02:00
.config
.run
.workdir
Agent
Common
Controller
Docker
Utils
Phantom.Utils
Collections
EnumerableExtensions.cs
ReferenceEqualityComparer.cs
RingBuffer.cs
RwLockedDictionary.cs
TableData.cs
Cryptography
IO
Processes
Result
Runtime
Tasks
Threading
Phantom.Utils.csproj
Phantom.Utils.Actor
Phantom.Utils.Events
Phantom.Utils.Logging
Phantom.Utils.Rpc
Phantom.Utils.Tests
Web
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json
16 lines
378 B
C#
16 lines
378 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace Phantom.Utils.Collections;
|
|
|
|
public sealed class ReferenceEqualityComparer<T> : IEqualityComparer<T> {
|
|
public static readonly ReferenceEqualityComparer<T> Instance = new ();
|
|
|
|
public bool Equals(T? x, T? y) {
|
|
return ReferenceEquals(x, y);
|
|
}
|
|
|
|
public int GetHashCode(T obj) {
|
|
return RuntimeHelpers.GetHashCode(obj);
|
|
}
|
|
}
|