/// <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)); }
/// <summary> /// Loads the given assembly /// </summary> /// <param name="assembly">The assembly</param> public void LoadAssembly(Loader.Data.Assembly assembly) { this.VirtualMachine.LoadAssembly(assembly); }