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

Improve markup node equals method and implement GetHashCode #5139

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

juliangiebel
Copy link
Contributor

What it says on the tin.

The equals method wasn't implemented correctly. I looked up how it and GetHashCode is supposed to be implemented and fixed the implementation accordingly.

Implement markup node hash method
Implement test case covering attributes dictionary
@juliangiebel juliangiebel reopened this May 14, 2024
Copy link
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your GetHashCode implementation is wrong, you're getting the reference equality has for the dictionary.

@PJB3005 PJB3005 added Issue: Bug This issue is a bug report. Area: UI Things like game screens, menus, and windows. labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: UI Things like game screens, menus, and windows. Issue: Bug This issue is a bug report.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants