?一个小的反射有关问题,大家来帮小弟我看看,错在那里
???一个小的反射问题,大家来帮我看看,错在那里
http://community.****.net/Expert/topic/5420/5420639.xml?temp=.6603968
一起结
搞了好几天了
------解决方案--------------------
Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "Class1 ");
--->
Itest a = (Class1)Assembly.Load( "mytest ").CreateInstance( "Class1 ");
------解决方案--------------------
改为Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "mytest.Class1 ");
------解决方案--------------------
Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "mytest.Class1 ");
http://community.****.net/Expert/topic/5420/5420639.xml?temp=.6603968
一起结
搞了好几天了
------解决方案--------------------
Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "Class1 ");
--->
Itest a = (Class1)Assembly.Load( "mytest ").CreateInstance( "Class1 ");
------解决方案--------------------
改为Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "mytest.Class1 ");
------解决方案--------------------
Itest a = (Itest)Assembly.Load( "mytest ").CreateInstance( "mytest.Class1 ");