Adds more move scripts

This commit is contained in:
2025-03-07 12:07:57 +01:00
parent a3a9f1800a
commit 3571b2130e
16 changed files with 193 additions and 21 deletions

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);
}