Skip to content

fix duplicate items in module-list: issue 289# - #290

Open
wanxq73 wants to merge 2 commits into
lucasg:masterfrom
wanxq73:fix-issue-289
Open

wanxq73 wants to merge 2 commits into
lucasg:masterfrom
wanxq73:fix-issue-289

Conversation

@wanxq73

@wanxq73 wanxq73 commented Jun 13, 2025

Copy link
Copy Markdown

Modify DependencyModuleList.xaml.cs:

  1. override the Equal() method of ModuleCacheKey class.
  2. remove unecessary "using"s.
    Close Duplicated items in module-list #289

@wanxq73 wanxq73 changed the title fix issue 289# remove duplicated items from module-list: fix issue 289# Jun 13, 2025
@wanxq73 wanxq73 changed the title remove duplicated items from module-list: fix issue 289# fix duplicate items in module-list: issue 289# Jun 13, 2025
@pzhlkj6612

Copy link
Copy Markdown

Hey! You can use keywords to link issues in PR: Using keywords in issues and pull requests - GitHub Docs. Please note that those keywords do not work in title.

{
if (obj is ModuleCacheKey o)
{
return this.GetHashCode() == o.GetHashCode();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for the fix.
But I believe this is not a good approach to compare using hash codes because there can be hash collisions. If you can make a pull request with direct comparisons on the properties, I'll merge it in to my branch.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I had been trying to get everything done but find it difficult

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.

Duplicated items in module-list

4 participants