通过接口方式直接反射其接口类

            加载DLL

             Assembly controlAssembly = Assembly.LoadFrom(DLLName);
            获取加载对象的类型

             Type controlType = controlAssembly.GetType(ClassName);

            加类型对象强制转换

            _isoAdapter = (IRFIDISO180006BControlAdapter)Activator.CreateInstance(controlType);

 

转自:http://zhouweigang01.blog.163.com/blog/static/9340907200782593224238/

posted on 2010-03-29 18:09  一路前行  阅读(338)  评论(0编辑  收藏  举报