Skip to content

Conversation

@wanxq73
Copy link

@wanxq73 wanxq73 commented Jun 13, 2025

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

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();

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.

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

3 participants