diff --git a/src/Change.cs b/src/Change.cs index 05201c2..cf9de63 100644 --- a/src/Change.cs +++ b/src/Change.cs @@ -42,10 +42,7 @@ public override int GetHashCode() } /// - public override bool Equals(object? obj) - { - return obj?.GetHashCode() == GetHashCode(); - } + public override bool Equals(object? obj) => obj is Change change && Equals(change); #region Constructors