Adds more move scripts

This commit is contained in:
Deukhoofd committed 2025-03-07 12:19:37 +01:00
1 parent a3a9f1800a
commit 3571b2130e
16 files changed
+193 -21

No files matched your search

+13
View File
@@ -46,4 +46,17 @@ public readonly record struct StringKey
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator !=(StringKey left, string right) => !(left == right);
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator ==(StringKey? left, string? right) =>
(left is null && right is null) || (right != null && (left?.Equals(right) ?? false));
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator !=(StringKey? left, string? right) => !(left == right);
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator ==(StringKey? left, StringKey right) => left?.Equals(right) ?? false;
/// <inheritdoc cref="Equals(StringKey)"/>
public static bool operator !=(StringKey? left, StringKey right) => !(left == right);
}