You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace TestCases
{
public class HotBehaviour
{
public T csObj { get; protected set; }
}
class XX : HotBehaviour<int>
{
}
public class YY
{
public void a<T>(int a, T t)
{
}
}
class Test06
{
public static void TestForEach()
{
YY yy = new YY();
var method = typeof(YY).GetMethod("a");
}
}
namespace TestCases
{
public class HotBehaviour
{
public T csObj { get; protected set; }
}
}
Test:TestCases.Test06.TestForEach
TestResult:Failed
Log:
未实现该方法或操作。
Local Variables:
YY yy = TestCases.YY, MethodInfo method = null
IL_0016: call System.Reflection.MethodInfo System.Type::GetMethod(System.String)
at TestCases.Test06.TestForEach() (at D:/Sources/ILRuntime/TestCases/Test06.cs:37)
System.NotImplementedException: 未实现该方法或操作。
在 ILRuntime.CLR.TypeSystem.ILGenericParameterType.get_ReflectionType() 位置 D:\Sources\ILRuntime\ILRuntime\CLR\TypeSystem\ILGenericParameterType.cs:行号 178
在 ILRuntime.Reflection.ILRuntimeParameterInfo..ctor(ParameterDefinition definition, IType type, MemberInfo member, AppDomain appdomain) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeParameterInfo.cs:行号 28
在 ILRuntime.Reflection.ILRuntimeMethodInfo..ctor(ILMethod m) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeMethodInfo.cs:行号 34
在 ILRuntime.CLR.Method.ILMethod.get_ReflectionMethodInfo() 位置 D:\Sources\ILRuntime\ILRuntime\CLR\Method\ILMethod.cs:行号 76
在 ILRuntime.Reflection.ILRuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeType.cs:行号 562
在 System.Type.GetMethod(String name)
在 ILRuntime.Runtime.Generated.System_Type_Binding.GetMethod_2(ILIntepreter __intp, StackObject* __esp, IList`1 __mStack, CLRMethod __method, Boolean isNewObj) 位置 D:\Sources\ILRuntime\ILRuntimeTestBase\AutoGenerate\System_Type_Binding.cs:行号 135
在 ILRuntime.Runtime.Intepreter.ILIntepreter.Execute(ILMethod method, StackObject* esp, Boolean& unhandledException) 位置 D:\Sources\ILRuntime\ILRuntime\Runtime\Intepreter\ILIntepreter.cs:行号 2053
System.NotImplementedException: 未实现该方法或操作。
在 ILRuntime.CLR.TypeSystem.ILGenericParameterType.get_ReflectionType() 位置 D:\Sources\ILRuntime\ILRuntime\CLR\TypeSystem\ILGenericParameterType.cs:行号 178
在 ILRuntime.Reflection.ILRuntimeParameterInfo..ctor(ParameterDefinition definition, IType type, MemberInfo member, AppDomain appdomain) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeParameterInfo.cs:行号 28
在 ILRuntime.Reflection.ILRuntimeMethodInfo..ctor(ILMethod m) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeMethodInfo.cs:行号 34
在 ILRuntime.CLR.Method.ILMethod.get_ReflectionMethodInfo() 位置 D:\Sources\ILRuntime\ILRuntime\CLR\Method\ILMethod.cs:行号 76
在 ILRuntime.Reflection.ILRuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 位置 D:\Sources\ILRuntime\ILRuntime\Reflection\ILRuntimeType.cs:行号 562
在 System.Type.GetMethod(String name)
在 ILRuntime.Runtime.Generated.System_Type_Binding.GetMethod_2(ILIntepreter __intp, StackObject* __esp, IList`1 __mStack, CLRMethod __method, Boolean isNewObj) 位置 D:\Sources\ILRuntime\ILRuntimeTestBase\AutoGenerate\System_Type_Binding.cs:行号 135
在 ILRuntime.Runtime.Intepreter.ILIntepreter.Execute(ILMethod method, StackObject* esp, Boolean& unhandledException) 位置 D:\Sources\ILRuntime\ILRuntime\Runtime\Intepreter\ILIntepreter.cs:行号 2053
=======================
The text was updated successfully, but these errors were encountered: