diff --git a/Editor/Emit/ProxyCallAllocator.cs b/Editor/Emit/ProxyCallAllocator.cs index 530380c..6c71bb8 100644 --- a/Editor/Emit/ProxyCallAllocator.cs +++ b/Editor/Emit/ProxyCallAllocator.cs @@ -106,9 +106,10 @@ namespace Obfuz.Emit private MethodSig CreateDispatchMethodSig(IMethod method) { - MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + //MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); //methodSig.Params - switch(MetaUtil.GetThisArgType(method)) + switch (MetaUtil.GetThisArgType(method)) { case ThisArgType.Class: {