mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-10 12:17:51 +02:00
Move solution and projects to src
This commit is contained in:
30
src/Spv.Generator/DeterministicStringKey.cs
Normal file
30
src/Spv.Generator/DeterministicStringKey.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Spv.Generator
|
||||
{
|
||||
internal class DeterministicStringKey : IEquatable<DeterministicStringKey>
|
||||
{
|
||||
private string _value;
|
||||
|
||||
public DeterministicStringKey(string value)
|
||||
{
|
||||
_value = value;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return DeterministicHashCode.GetHashCode(_value);
|
||||
}
|
||||
|
||||
public bool Equals(DeterministicStringKey other)
|
||||
{
|
||||
return _value == other._value;
|
||||
}
|
||||
|
||||
public override bool Equals([NotNullWhen(true)] object obj)
|
||||
{
|
||||
return obj is DeterministicStringKey && Equals((DeterministicStringKey)obj);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user