Skip to content
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

GetHashCode for own type #853

Merged
merged 1 commit into from Aug 5, 2021
Merged

GetHashCode for own type #853

merged 1 commit into from Aug 5, 2021

Conversation

SergerGood
Copy link
Collaborator

I think that it is not entirely correct to use the method GetUnderlyingType to calculate the hashcode.

In the example, you can see that A is equal to C, but this can lead to collisions when using two different types in fact.

изображение

@mikependon
Copy link
Owner

One test is failing?

@mikependon mikependon merged commit 18631b6 into master Aug 5, 2021
@SergerGood SergerGood deleted the correct-get-hash-code branch October 10, 2021 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants