加载DLL

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

             Type controlType = controlAssembly.GetType(ClassName);

            加类型对象强制转换

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

 

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-07-23
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-12-14
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案