Skip to content

Commit a359b19

Browse files
committed
use HashCode.Combine()
1 parent 1430336 commit a359b19

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ImageSharp/Memory/RowInterval.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ public override bool Equals(object obj)
6565
return !ReferenceEquals(null, obj) && obj is RowInterval other && this.Equals(other);
6666
}
6767

68-
public override int GetHashCode()
69-
{
70-
unchecked
71-
{
72-
return (this.Min * 397) ^ this.Max;
73-
}
74-
}
68+
public override int GetHashCode() => HashCode.Combine(this.Min, this.Max);
7569
}
7670
}

0 commit comments

Comments
 (0)