fix: fix bug of TypeSigUtil::ComputeMethodDefSignature that didn't distinguish not generic method with generic method which have same return and parameter types.

before-split
walon 2025-05-18 11:17:24 +08:00
parent 7619928b07
commit 56374bbac7
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ namespace Obfuz.Utils
result.Append(method.DeclaringType.FullName);
result.Append("::");
result.Append(method.Name);
if (method.HasGenericParameters)
{
result.Append($"`{method.GenericParameters.Count}");
}
result.Append("(");
for (int i = 0; i < method.Parameters.Count; i++)
{