From e997f03fda5c401c5dfd22c04686985c8a617e1c Mon Sep 17 00:00:00 2001 From: m1stm4o <16450904+m1stm4o@users.noreply.github.com> Date: Mon, 8 May 2023 20:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=86=E8=B7=A8=E5=9F=9F?= =?UTF-8?q?=E7=BB=A7=E6=89=BF=E7=9A=84=E5=AD=90=E7=B1=BB=E7=9A=84=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=87=BD=E6=95=B0=E4=BD=9C=E4=B8=BA=E5=A7=94=E6=89=98?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E6=97=B6=E6=8A=A5=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ILRuntime/Runtime/Intepreter/ILIntepreter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ILRuntime/Runtime/Intepreter/ILIntepreter.cs b/ILRuntime/Runtime/Intepreter/ILIntepreter.cs index f02f95e5..2b5c2ca7 100644 --- a/ILRuntime/Runtime/Intepreter/ILIntepreter.cs +++ b/ILRuntime/Runtime/Intepreter/ILIntepreter.cs @@ -2829,6 +2829,8 @@ public object Run(ILMethod method, object instance, object[] p) var ilMethod = mi as ILMethod; if (ilMethod != null) { + if (ins is CrossBindingAdaptorType) + ins = ((CrossBindingAdaptorType)ins).ILInstance; dele = domain.DelegateManager.FindDelegateAdapter((CLRType)cm.DeclearingType, (ILTypeInstance)ins, ilMethod); } else