You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SignatureComprer class can be configured to slightly relax the strict comparisons that are made for assemblies and types. This relaxation is however not reflected in the GetHashCode implementations. This can result in two members that would be considered equal according to the relaxed rules having two different hashcodes, making it unusable for HashSet<TMember> and Dictionary<TMember, TValue>.
AsmResolver Version
5.2.0
.NET Version
.NET 6.0
Operating System
Windows
Describe the Bug
The
SignatureComprer
class can be configured to slightly relax the strict comparisons that are made for assemblies and types. This relaxation is however not reflected in theGetHashCode
implementations. This can result in two members that would be considered equal according to the relaxed rules having two different hashcodes, making it unusable forHashSet<TMember>
andDictionary<TMember, TValue>
.How To Reproduce
Expected Behavior
All checks pass.
Actual Behavior
The last
Assert.False
fails.Additional Context
No response
The text was updated successfully, but these errors were encountered: