Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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;
 }