首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

反照

2012-08-21 
反射Type t parentFrom.GetType()object showPage Activator.CreateInstance(t)MethodInfo methodIn

反射

            Type t = parentFrom.GetType();                         object showPage = Activator.CreateInstance(t);            MethodInfo methodInfo = t.GetMethod("ShowPage");            methodInfo.Invoke(showPage,                               new object[] {                                              currentPage                                                 });

热点排行