Пример #1
0
        public ImportSectionNode(string name, CorCompileImportType importType, CorCompileImportFlags flags, byte entrySize, bool emitPrecode)
        {
            _name        = name;
            _type        = importType;
            _flags       = flags;
            _entrySize   = entrySize;
            _emitPrecode = emitPrecode;

            _imports    = new ArrayOfEmbeddedDataNode <Import>(_name + "_ImportBegin", _name + "_ImportEnd", null);
            _signatures = new ArrayOfEmbeddedPointersNode <Signature>(_name + "_SigBegin", _name + "_SigEnd", null);
        }
Пример #2
0
        public ImportSectionNode(string name, CorCompileImportType importType, CorCompileImportFlags flags, byte entrySize, bool emitPrecode, bool emitGCRefMap)
        {
            _name         = name;
            _type         = importType;
            _flags        = flags;
            _entrySize    = entrySize;
            _emitPrecode  = emitPrecode;
            _emitGCRefMap = emitGCRefMap;

            _imports       = new ImportTable(_name + "_ImportBegin", _name + "_ImportEnd");
            _signatures    = new ArrayOfEmbeddedPointersNode <Signature>(_name + "_SigBegin", _name + "_SigEnd", new EmbeddedObjectNodeComparer(new CompilerComparer()));
            _signatureList = new List <Signature>();
            _gcRefMap      = _emitGCRefMap ? new GCRefMapNode(this) : null;
        }