public ExternAssembly(string name, AssemblyName asmb_name, PEAPI.AssemAttr attr) : base(name) { this.name = name; this.asmb_name = asmb_name; this.attr = attr; major = minor = build = revision = -1; }
public void SetThisAssembly(string name, PEAPI.AssemAttr attr) { if (this_assembly != null && this_assembly.Name != name) { Report.Error("Multiple assembly declarations"); } this_assembly = new Assembly(name); this_assembly.SetAssemblyAttr(attr); if (name != "mscorlib") { ExternTable.AddCorlib(); } }
public ExternAssembly AddAssembly(string name, AssemblyName asmb_name, PEAPI.AssemAttr attr) { ExternAssembly ea = null; if (assembly_table == null) { assembly_table = new Hashtable(); } else { ea = assembly_table [name] as ExternAssembly; if (ea != null) { return(ea); } } ea = new ExternAssembly(name, asmb_name, attr); assembly_table [name] = ea; return(ea); }
public ExternAssembly (string name, AssemblyName asmb_name, PEAPI.AssemAttr attr) : base (name) { this.name = name; this.asmb_name = asmb_name; this.attr = attr; major = minor = build = revision = -1; }
public void BeginAssemblyRef(string name, AssemblyName asmb_name, PEAPI.AssemAttr attr) { current_customattrtarget = current_assemblyref = ExternTable.AddAssembly(name, asmb_name, attr); current_declsectarget = current_assemblyref; }