Improve ArraySegment's override of GetHashCode (dotnet/coreclr#4654)
authorJames Ko <jamesqko@gmail.com>
Sat, 22 Oct 2016 01:21:27 +0000 (21:21 -0400)
committerJan Kotas <jkotas@microsoft.com>
Sat, 22 Oct 2016 01:21:27 +0000 (18:21 -0700)
commit1f184db2df43187c41e68c7f5cd93da16282d8fe
tree69c27f90a37d1caede81a5a145d8f4ca4ba80bdb
parentbb66024d0515aee42396404387e179ef3aa9ac48
Improve ArraySegment's override of GetHashCode (dotnet/coreclr#4654)

* Improve ArraySegment's override of GetHashCode

* Use new implementation suggested by @VSadov

* Respond to PR feedback

* Remove the workaround for object.GetHashCode

* Respond to HashHelpers changes

* Fix compile errors.

Commit migrated from https://github.com/dotnet/coreclr/commit/15ea0086a7e6f87e8237923684e100e3e1f44698
src/coreclr/src/mscorlib/src/System/ArraySegment.cs