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)); }
public ModuleResolver(byte[] bytes) { Assembly = new ModuleAssembly(bytes); }