Ourpalm / ILRuntime

Pure C# IL Intepreter Runtime, which is fast and reliable for scripting requirement on enviorments, where jitting isn't possible.
Other
2.99k stars 655 forks source link

泛型类绑定不了??? #754

Closed SunHailang closed 1 year ago

SunHailang commented 1 year ago

大佬们,ILRuntime 泛型类怎么绑定? appdomain.RegisterCrossBindingAdaptor <IType>(new XXXX<IType>);无法支持

liiir1985 commented 1 year ago

泛型跨域继承的话,就是把泛型参数T替换成具体的类型,每个不同的T都需要独立绑定。 如果T是一个热更内的类型(没有跨域继承的情况下),则可以直接使用ILTypeInstance代替全部