Skip to content

Commit

Permalink
Fix the last thing that SonarCloud regards as a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Archomeda committed Feb 24, 2020
1 parent a477563 commit a970a21
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Gw2Sharp/WebApi/V2/Models/Rectangle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,15 @@ public bool Equals(Rectangle other)
/// <inheritdoc />
public override int GetHashCode()
{
int hashCode = -505697310;
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.TopLeft);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.TopRight);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.BottomLeft);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.BottomRight);
return hashCode;
unchecked
{
int hashCode = -505697310;
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.TopLeft);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.TopRight);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.BottomLeft);
hashCode = (hashCode * -1521134295) + EqualityComparer<Coordinates2>.Default.GetHashCode(this.BottomRight);
return hashCode;
}
}

/// <summary>
Expand Down

0 comments on commit a970a21

Please sign in to comment.