diff --git a/JL.Core/Deconjugation/Form.cs b/JL.Core/Deconjugation/Form.cs index def8636a..5413ae20 100644 --- a/JL.Core/Deconjugation/Form.cs +++ b/JL.Core/Deconjugation/Form.cs @@ -49,4 +49,7 @@ public override int GetHashCode() return hash; } } + + public static bool operator ==(Form? left, Form? right) => left is not null ? left.Equals(right) : right is null; + public static bool operator !=(Form? left, Form? right) => left is not null ? !left.Equals(right) : right is not null; } diff --git a/JL.Core/Lookup/LookupResult.cs b/JL.Core/Lookup/LookupResult.cs index 745bd4fe..a9cef392 100644 --- a/JL.Core/Lookup/LookupResult.cs +++ b/JL.Core/Lookup/LookupResult.cs @@ -94,4 +94,7 @@ public bool Equals(LookupResult? other) && Dict == other.Dict && FormattedDefinitions == other.FormattedDefinitions; } + + public static bool operator ==(LookupResult? left, LookupResult? right) => left is not null ? left.Equals(right) : right is null; + public static bool operator !=(LookupResult? left, LookupResult? right) => left is not null ? !left.Equals(right) : right is not null; }