Skip to content

Commit

Permalink
修复将跨域继承的子类的成员函数作为委托传递时报异常
Browse files Browse the repository at this point in the history
  • Loading branch information
m1stm4o authored and liiir1985 committed Oct 23, 2023
1 parent a961c81 commit e997f03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ILRuntime/Runtime/Intepreter/ILIntepreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e997f03

Please sign in to comment.