// 动态调用方法
Type p = GetType();
object o = Activator.CreateInstance(p);
MethodInfo mi = p.GetMethod("方法名");
object result = (mi != null) ? mi.Invoke(o, new object[] { context }) : "";

 

posted on 2013-02-28 10:35  厦门海之星  阅读(295)  评论(0编辑  收藏  举报