Skip to content

Commit

Permalink
BUGFIX: Remove incorrect HideBySig check during method resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Washi1337 committed Dec 29, 2021
1 parent f113ba7 commit 7cb4ae9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AsmResolver.DotNet/DefaultMetadataResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ public IAssemblyResolver AssemblyResolver
for (int i = 0; i < declaringType.Methods.Count; i++)
{
var candidate = declaringType.Methods[i];
if (candidate.Name != method.Name)
continue;
if (!candidate.IsHideBySig || _comparer.Equals(method.Signature, candidate.Signature))
if (candidate.Name == method.Name && _comparer.Equals(method.Signature, candidate.Signature))
return candidate;
}

Expand Down

0 comments on commit 7cb4ae9

Please sign in to comment.