Adds more move scripts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user