1. if you want to use Reflection, you have to use t.InvokeMember method, or MethodInfoBase's Invoke method if you want to use test.func1(args) format, don't use Reflection2. if the return value is void, then just use t.InvokeMember("outer", BindingFlags.Default|BindingFlags.InvokeMethod, null, obj, args);
3.3 \ 3 is fromConsole.WriteLine(a.ToString()+" \\ "+b.ToString());33 is from the return value in outer methodreturn a*10 + b; //==> 33
3.3 \ 3 is fromConsole.WriteLine(a.ToString()+" \\ "+b.ToString());33 is from the return value in outer methodreturn a*10 + b; //==> 33
没有的话,执行就ok了Invoke ...调用嘛其实是看着 Reflection有趣,所以找点事干罢了...哈哈 谢谢
现在连InvokeMember都搞懂了,thx