Improve ArraySegment's override of GetHashCode (#4654)
Improve ArraySegment's override of GetHashCode (#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.

sjsinju/coreclr,JonHanna/coreclr,Dmitry-Me/coreclr,sjsinju/coreclr,tijoytom/coreclr,YongseopKim/coreclr,ragmani/coreclr,qiudesong/coreclr,yeaicc/coreclr,JosephTremoulet/coreclr,cydhaselton/coreclr,gkhanna79/coreclr,krytarowski/coreclr,yizhang82/coreclr,russellhadley/coreclr,wateret/coreclr,parjong/coreclr,dpodder/coreclr,yizhang82/coreclr,botaberg/coreclr,neurospeech/coreclr,yeaicc/coreclr,kyulee1/coreclr,qiudesong/coreclr,dpodder/coreclr,qiudesong/coreclr,Dmitry-Me/coreclr,hseok-oh/coreclr,parjong/coreclr,cmckinsey/coreclr,yizhang82/coreclr,Dmitry-Me/coreclr,ruben-ayrapetyan/coreclr,krytarowski/coreclr,yeaicc/coreclr,gkhanna79/coreclr,kyulee1/coreclr,sjsinju/coreclr,yeaicc/coreclr,hseok-oh/coreclr,poizan42/coreclr,James-Ko/coreclr,yizhang82/coreclr,wateret/coreclr,krk/coreclr,cshung/coreclr,sagood/coreclr,russellhadley/coreclr,ruben-ayrapetyan/coreclr,rartemev/coreclr,hseok-oh/coreclr,krytarowski/coreclr,botaberg/coreclr,James-Ko/coreclr,mmitche/coreclr,parjong/coreclr,botaberg/coreclr,ragmani/coreclr,JonHanna/coreclr,kyulee1/coreclr,gkhanna79/coreclr,tijoytom/coreclr,yeaicc/coreclr,parjong/coreclr,poizan42/coreclr,krk/coreclr,wtgodbe/coreclr,sagood/coreclr,cydhaselton/coreclr,AlexGhiondea/coreclr,tijoytom/coreclr,Dmitry-Me/coreclr,krytarowski/coreclr,pgavlin/coreclr,wtgodbe/coreclr,sagood/coreclr,mmitche/coreclr,krytarowski/coreclr,dasMulli/coreclr,qiudesong/coreclr,cshung/coreclr,wateret/coreclr,russellhadley/coreclr,dasMulli/coreclr,alexperovich/coreclr,poizan42/coreclr,ruben-ayrapetyan/coreclr,tijoytom/coreclr,rartemev/coreclr,mmitche/coreclr,sjsinju/coreclr,alexperovich/coreclr,jamesqo/coreclr,dpodder/coreclr,krk/coreclr,pgavlin/coreclr,James-Ko/coreclr,dpodder/coreclr,cmckinsey/coreclr,krk/coreclr,cydhaselton/coreclr,parjong/coreclr,YongseopKim/coreclr,wtgodbe/coreclr,dpodder/coreclr,sagood/coreclr,wtgodbe/coreclr,ragmani/coreclr,wateret/coreclr,Dmitry-Me/coreclr,mskvortsov/coreclr,krytarowski/coreclr,pgavlin/coreclr,wtgodbe/coreclr,yeaicc/coreclr,yizhang82/coreclr,cshung/coreclr,AlexGhiondea/coreclr,mskvortsov/coreclr,jamesqo/coreclr,Dmitry-Me/coreclr,yizhang82/coreclr,gkhanna79/coreclr,neurospeech/coreclr,rartemev/coreclr,rartemev/coreclr,jamesqo/coreclr,rartemev/coreclr,cmckinsey/coreclr,AlexGhiondea/coreclr,mskvortsov/coreclr,mskvortsov/coreclr,dasMulli/coreclr,dasMulli/coreclr,cmckinsey/coreclr,James-Ko/coreclr,cmckinsey/coreclr,botaberg/coreclr,YongseopKim/coreclr,alexperovich/coreclr,russellhadley/coreclr,gkhanna79/coreclr,parjong/coreclr,qiudesong/coreclr,dasMulli/coreclr,JonHanna/coreclr,dasMulli/coreclr,mskvortsov/coreclr,poizan42/coreclr,wateret/coreclr,wtgodbe/coreclr,neurospeech/coreclr,hseok-oh/coreclr,YongseopKim/coreclr,JosephTremoulet/coreclr,cydhaselton/coreclr,wateret/coreclr,pgavlin/coreclr,alexperovich/coreclr,ragmani/coreclr,mmitche/coreclr,hseok-oh/coreclr,botaberg/coreclr,kyulee1/coreclr,sjsinju/coreclr,dpodder/coreclr,mskvortsov/coreclr,ragmani/coreclr,JonHanna/coreclr,cydhaselton/coreclr,kyulee1/coreclr,qiudesong/coreclr,JosephTremoulet/coreclr,AlexGhiondea/coreclr,ragmani/coreclr,neurospeech/coreclr,YongseopKim/coreclr,gkhanna79/coreclr,mmitche/coreclr,JonHanna/coreclr,krk/coreclr,krk/coreclr,AlexGhiondea/coreclr,JosephTremoulet/coreclr,pgavlin/coreclr,mmitche/coreclr,tijoytom/coreclr,russellhadley/coreclr,russellhadley/coreclr,alexperovich/coreclr,JosephTremoulet/coreclr,James-Ko/coreclr,cmckinsey/coreclr,cshung/coreclr,kyulee1/coreclr,sagood/coreclr,hseok-oh/coreclr,tijoytom/coreclr,Dmitry-Me/coreclr,ruben-ayrapetyan/coreclr,neurospeech/coreclr,cshung/coreclr,botaberg/coreclr,poizan42/coreclr,ruben-ayrapetyan/coreclr,alexperovich/coreclr,pgavlin/coreclr,James-Ko/coreclr,cshung/coreclr,dasMulli/coreclr,JosephTremoulet/coreclr,sjsinju/coreclr,YongseopKim/coreclr,cmckinsey/coreclr,poizan42/coreclr,jamesqo/coreclr,ruben-ayrapetyan/coreclr,neurospeech/coreclr,rartemev/coreclr,AlexGhiondea/coreclr,jamesqo/coreclr,sagood/coreclr,jamesqo/coreclr,cydhaselton/coreclr,JonHanna/coreclr,yeaicc/coreclr