Browse Source

use HashCode.Combine()

pull/888/head
Anton Firszov 7 years ago
parent
commit
a359b195f2
  1. 8
      src/ImageSharp/Memory/RowInterval.cs

8
src/ImageSharp/Memory/RowInterval.cs

@ -65,12 +65,6 @@ namespace SixLabors.ImageSharp.Memory
return !ReferenceEquals(null, obj) && obj is RowInterval other && this.Equals(other);
}
public override int GetHashCode()
{
unchecked
{
return (this.Min * 397) ^ this.Max;
}
}
public override int GetHashCode() => HashCode.Combine(this.Min, this.Max);
}
}
Loading…
Cancel
Save