-
Notifications
You must be signed in to change notification settings - Fork 217
Description
运行继承适配器例子,InheritanceAdapter 的 public override System.Int32 Value 属性方法里面会报错。
NullReferenceException: Object reference not set to an instance of an object ILRuntime.CLR.TypeSystem.CLRType.GetMethod (System.String name, System.Collections.Generic.List1[T] param, ILRuntime.CLR.TypeSystem.IType[] genericArguments, ILRuntime.CLR.TypeSystem.IType returnType, System.Boolean declaredOnly) (at Library/PackageCache/com.ourpalm.ilruntime@1.6.3/CLR/TypeSystem/CLRType.cs:705)
ILRuntime.Runtime.Enviorment.CrossBindingAdaptor.GetMethod (System.String name, System.Collections.Generic.List1[T] param, ILRuntime.CLR.TypeSystem.IType[] genericArguments, ILRuntime.CLR.TypeSystem.IType returnType, System.Boolean declaredOnly) (at Library/PackageCache/com.ourpalm.ilruntime@1.6.3/Runtime/Enviorment/CrossBindingAdaptor.cs:52) ILRuntime.Runtime.Enviorment.CrossBindingMethodInfo.EnsureMethod (ILRuntime.Runtime.Intepreter.ILTypeInstance ins) (at Library/PackageCache/com.ourpalm.ilruntime@1.6.3/Runtime/Enviorment/CrossBindingMethodInfo.cs:729) ILRuntime.Runtime.Enviorment.CrossBindingMethodInfo.CheckShouldInvokeBase (ILRuntime.Runtime.Intepreter.ILTypeInstance ins) (at Library/PackageCache/com.ourpalm.ilruntime@1.6.3/Runtime/Enviorment/CrossBindingMethodInfo.cs:699) ILRuntimeDemo.TestClassBaseAdapter+Adapter.get_Value () (at Assets/Samples/ILRuntime/1.6.3/Demo/Scripts/Examples/04_Inheritance/InheritanceAdapter.cs:70) Inheritance.OnHotFixLoaded () (at Assets/Samples/ILRuntime/1.6.3/Demo/Scripts/Examples/04_Inheritance/Inheritance.cs:117) Inheritance+<LoadHotFixAssembly>d__4.MoveNext () (at Assets/Samples/ILRuntime/1.6.3/Demo/Scripts/Examples/04_Inheritance/Inheritance.cs:92) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at D:/unity/Runtime/Export/Coroutines.cs:17)