【问题标题】:load dynamically dll from file path at runtime in silverlight在silverlight中运行时从文件路径动态加载dll
【发布时间】:2017-10-17 07:17:06
【问题描述】:

我正在想办法解决你的问题。 如何在 Silverlight 运行时从文件路径动态加载 dll?

【问题讨论】:

    标签: c# .net silverlight silverlight-4.0


    【解决方案1】:

    只需加载 dll,您可以使用 AssemblyPart 的 Load()

     AssemblyPart assemblyPart = new AssemblyPart();
     Assembly asm = assemblyPart.Load(dllStream);
    

    然后用

    创建实例
    asm.CreateInstance("...")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 2016-12-17
      相关资源
      最近更新 更多