Use RuntimeHelpers.GetHashCode instead of obj.GetHashCode (#31756)
authorRoman Marusyk <Marusyk@users.noreply.github.com>
Thu, 6 Feb 2020 05:31:05 +0000 (07:31 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 05:31:05 +0000 (21:31 -0800)
commitc626d1acfbfbf207b091df0d7d18cf7d151c9cae
tree15e180ec0184c452e58d8c25830588ece604da1b
parent725968c3c5562866c0a8a416b9a635fa54139f75
Use RuntimeHelpers.GetHashCode instead of obj.GetHashCode (#31756)

* Use RuntimeHelpers.GetHashCode instead of obj.GetHashCode

* Fix unit test

* Code review fixes

* Code review fixes

* Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReferenceEqualsEqualityComparer.cs

Co-Authored-By: David Cantu <jozkyy@gmail.com>
Co-authored-by: David Cantu <jozkyy@gmail.com>
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReferenceEqualsEqualityComparer.cs
src/libraries/System.Text.Json/tests/Serialization/ReferenceHandlingTests.Serialize.cs