-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use RuntimeHelpers.GetHashCode instead of obj.GetHashCode #31756
Conversation
Unit tests will commit in a few minutes |
...aries/System.Text.Json/src/System/Text/Json/Serialization/ReferenceEqualsEqualityComparer.cs
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Serialization/ReferenceHandlingTests.Serialize.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than https://github.com/dotnet/runtime/pull/31756/files#r375016781 suggestion; it looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice the CI failures. Re-reviewing.
...aries/System.Text.Json/src/System/Text/Json/Serialization/ReferenceEqualsEqualityComparer.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Serialization/ReferenceHandlingTests.Serialize.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, I think this can be merged once the CI finishes correctly.
src/libraries/Common/src/System/Collections/Generic/ReferenceEqualityComparer.cs
Outdated
Show resolved
Hide resolved
…ion/ReferenceEqualsEqualityComparer.cs Co-Authored-By: David Cantu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
Fixes #2128
Please review
Thank you in advance