Implements 11 more moves

This commit is contained in:
Deukhoofd committed 2025-03-07 11:54:08 +01:00
1 parent 61a69eecb8
commit a3a9f1800a
17 files changed
+311 -13

No files matched your search

+9
View File
@@ -35,6 +35,15 @@ public readonly record struct StringKey
/// <inheritdoc />
public bool Equals(StringKey other) => string.Equals(_key, other._key, StringComparison.InvariantCultureIgnoreCase);
/// <inheritdoc cref="Equals(StringKey)"/>
public bool Equals(string other) => string.Equals(_key, other, StringComparison.InvariantCultureIgnoreCase);
/// <inheritdoc />
public override int GetHashCode() => StringComparer.InvariantCultureIgnoreCase.GetHashCode(_key);
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator ==(StringKey left, string right) => left.Equals(right);
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator !=(StringKey left, string right) => !(left == right);
}