fix order (codefactor)
MODIFY
WalletWasabi.Gui/Models/Sorting/SortingPreference.cs
WalletWasabi.Gui/Models/Sorting/SortingPreference.cs
@@ -21,6 +21,11 @@ namespace WalletWasabi.Gui.Models.Sorting
#region EqualityAndComparison
+ public static bool operator ==(SortingPreference x, SortingPreference y)
+ => (x.SortOrder, x.ColumnTarget) == (y.SortOrder, y.ColumnTarget);
+
+ public static bool operator !=(SortingPreference x, SortingPreference y) => !(x == y);
+
public override bool Equals(object obj)
{
if (obj is SortingPreference sp)
@@ -37,11 +42,6 @@ namespace WalletWasabi.Gui.Models.Sorting
public override int GetHashCode() => (SortOrder, ColumnTarget).GetHashCode();
- public static bool operator ==(SortingPreference x, SortingPreference y)
- => (x.SortOrder, x.ColumnTarget) == (y.SortOrder, y.ColumnTarget);
-
- public static bool operator !=(SortingPreference x, SortingPreference y) => !(x == y);
-
#endregion EqualityAndComparison
}
}

MODIFY
WalletWasabi/Models/UpdateStatus.cs
WalletWasabi/Models/UpdateStatus.cs
@@ -22,17 +22,17 @@ namespace WalletWasabi.Models
#region EqualityAndComparison
+ public static bool operator ==(UpdateStatus x, UpdateStatus y)
+ => (x?.ClientUpToDate, x?.BackendCompatible, x?.LegalDocumentsVersion, x?.CurrentBackendMajorVersion) == (y?.ClientUpToDate, y?.BackendCompatible, y?.LegalDocumentsVersion, y?.CurrentBackendMajorVersion);
+
+ public static bool operator !=(UpdateStatus x, UpdateStatus y) => !(x == y);
+
public override bool Equals(object obj) => Equals(obj as UpdateStatus);
public bool Equals(UpdateStatus other) => this == other;
public override int GetHashCode() => (ClientUpToDate, BackendCompatible, LegalDocumentsVersion, CurrentBackendMajorVersion).GetHashCode();
- public static bool operator ==(UpdateStatus x, UpdateStatus y)
- => (x?.ClientUpToDate, x?.BackendCompatible, x?.LegalDocumentsVersion, x?.CurrentBackendMajorVersion) == (y?.ClientUpToDate, y?.BackendCompatible, y?.LegalDocumentsVersion, y?.CurrentBackendMajorVersion);
-
- public static bool operator !=(UpdateStatus x, UpdateStatus y) => !(x == y);
-
#endregion EqualityAndComparison
}
}

fix order (codefactor)