aspx reflection method call

string name = base.Request["action"];
                object obj2 = base.GetType().InvokeMember(name, BindingFlags.InvokeMethod, null, this, new object[0]);
                if (obj2 != null)
                {
                    s = obj2.ToString();
                }

Pass method name to call the method

Guess you like

Origin www.cnblogs.com/codeDevotee/p/11330703.html