Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Feb 1, 2025
1 parent 0674709 commit 3543b40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions JL.Core/Deconjugation/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions JL.Core/Lookup/LookupResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 3543b40

Please sign in to comment.