internal PortablePdbReader(Image image, ModuleDefinition module)
 {
     this.image = image;
     this.module = module;
     this.reader = module.reader;
     this.debug_reader = new MetadataReader (image, module, this.reader);
 }
 public MetadataTableReader(MetadataReader mrv)
 {
     m_metadataRoot = mrv.GetMetadataRoot ();
     m_heap = m_metadataRoot.Streams.TablesHeap;
     m_binaryReader = new BinaryReader (new MemoryStream (m_heap.Data));
     m_binaryReader.BaseStream.Position = 24;
     m_mrrv = new MetadataRowReader (this);
 }
 public CodeWriter(MethodDefinition method)
     : base(0)
 {
     this.code_base = 0;
     this.metadata = null;
     this.method = method;
     this.reader = method.DeclaringType.Module.reader;
     this.body = method.Body;
 }
Beispiel #4
0
 public override void VisitImage(Image img)
 {
     m_mdReader = new MetadataReader (this);
 }