public void EndModule() { try { String s = Io.GetOutputFilename(); appbuild.Save(s); Console.WriteLine("Saving assembly as " + s); } catch (Exception e) { Io.ICE(e.ToString()); } }
public void BeginModule(string ifile) { appdomain = System.Threading.Thread.GetDomain(); appname = getAssemblyName(filename); appbuild = appdomain.DefineDynamicAssembly(appname, AssemblyBuilderAccess.Save, Io.genpath); emodule = appbuild.DefineDynamicModule( filename + "_module", Io.GetOutputFilename(), Io.gendebug); Guid g = System.Guid.Empty; if (Io.gendebug) { srcdoc = emodule.DefineDocument(ifile, g, g, g); } }