Ejemplo n.º 1
0
        /// <summary>
        /// Loads the given assembly
        /// </summary>
        /// <param name="assembly">The assembly</param>
        public Assembly LoadAssembly(Data.Assembly assembly)
        {
            var loadedClasses   = this.classLoader.LoadClasses(assembly.Classes);
            var loadedFunctions = assembly.Functions.Select(func =>
            {
                var funcDef = this.CreateFunctionDefinition(func);
                return(this.functionLoader.LoadManagedFunction(func, funcDef));
            }).ToList();

            return(new Assembly(assembly.Name, loadedClasses, loadedFunctions));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads the given assembly
 /// </summary>
 /// <param name="assembly">The assembly</param>
 public void LoadAssembly(Loader.Data.Assembly assembly)
 {
     this.VirtualMachine.LoadAssembly(assembly);
 }