From 56374bbac7bd495ec2751fc0097118ff3280e872 Mon Sep 17 00:00:00 2001 From: walon Date: Sun, 18 May 2025 11:17:24 +0800 Subject: [PATCH] fix: fix bug of TypeSigUtil::ComputeMethodDefSignature that didn't distinguish not generic method with generic method which have same return and parameter types. --- .../com.code-philosophy.obfuz/Editor/Utils/TypeSigUtil.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Utils/TypeSigUtil.cs b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Utils/TypeSigUtil.cs index e016d8c..11c722f 100644 --- a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Utils/TypeSigUtil.cs +++ b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Utils/TypeSigUtil.cs @@ -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++) {