diff --git a/Editor/Emit/ProxyCallAllocator.cs b/Editor/Emit/ProxyCallAllocator.cs index 6c71bb8..da48a7a 100644 --- a/Editor/Emit/ProxyCallAllocator.cs +++ b/Editor/Emit/ProxyCallAllocator.cs @@ -106,8 +106,8 @@ namespace Obfuz.Emit private MethodSig CreateDispatchMethodSig(IMethod method) { - //MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); - MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); + MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + //MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); //methodSig.Params switch (MetaUtil.GetThisArgType(method)) { diff --git a/Editor/Utils/MetaUtil.cs b/Editor/Utils/MetaUtil.cs index 77b066a..3e2b81c 100644 --- a/Editor/Utils/MetaUtil.cs +++ b/Editor/Utils/MetaUtil.cs @@ -650,6 +650,7 @@ namespace Obfuz.Utils case ElementType.Class: return corTypes.Object; case ElementType.GenericInst: { + return typeSig; var gia = (GenericInstSig)a; TypeDef typeDef = gia.GenericType.ToTypeDefOrRef().ResolveTypeDef(); if (typeDef == null)