Ejemplo n.º 1
0
        public override void VisitModuleReference(ModuleReference module)
        {
            ModuleRefTable mrTable = m_tableWriter.GetModuleRefTable();
            ModuleRefRow   mrRow   = m_rowWriter.CreateModuleRefRow(
                m_mdWriter.AddString(module.Name));

            mrTable.Rows.Add(mrRow);
        }
Ejemplo n.º 2
0
        public override void VisitModuleReferenceCollection(ModuleReferenceCollection modules)
        {
            if (!m_tHeap.HasTable(ModuleRefTable.RId))
            {
                return;
            }

            ModuleRefTable mrTable = m_tableReader.GetModuleRefTable();

            for (int i = 0; i < mrTable.Rows.Count; i++)
            {
                ModuleRefRow    mrRow = mrTable [i];
                ModuleReference mod   = new ModuleReference(ReadString(mrRow.Name));
                mod.MetadataToken = MetadataToken.FromMetadataRow(TokenType.ModuleRef, i);
                modules.Add(mod);
            }
        }