示例#1
0
        private void LoadModuleDll(string ModuleName)
        {
            var path = GetModuleDirectory(ModuleName);
            var file = Directory.GetFiles(path, "*.dll").Single();
            var asm  = new ModuleAssembly(Assembly.Load(File.ReadAllBytes(file)));

            ModuleAssemblies[ModuleName] = new Tuple <ModuleAssembly, ModuleMeta>(asm, new ModuleMeta(asm, asm.Manifest));
        }
示例#2
0
 public ModuleResolver(byte[] bytes)
 {
     Assembly = new ModuleAssembly(bytes);
 }