Пример #1
0
 internal ModuleReader(AssemblyReader assembly, Universe universe, Stream stream, string location)
     : base(universe)
 {
     this.stream   = stream;
     this.location = location;
     Read();
     if (assembly == null && AssemblyTable.records.Length != 0)
     {
         assembly = new AssemblyReader(location, this);
     }
     this.assembly = assembly;
 }
Пример #2
0
 internal ModuleReader(AssemblyReader assembly, Universe universe, Stream stream, string location)
     : base(universe)
 {
     this.stream = universe != null && universe.MetadataOnly ? null : stream;
     this.location = location;
     Read(stream);
     if (assembly == null && AssemblyTable.records.Length != 0)
     {
         assembly = new AssemblyReader(location, this);
     }
     this.assembly = assembly;
 }
Пример #3
0
 internal ModuleReader(AssemblyReader assembly, Universe universe, Stream stream, string location, bool mapped)
     : base(universe)
 {
     this.stream = universe != null && universe.MetadataOnly ? null : stream;
     this.location = location;
     Read(stream, mapped);
     if (universe != null && universe.WindowsRuntimeProjection && imageRuntimeVersion.StartsWith("WindowsRuntime ", StringComparison.Ordinal))
     {
         WindowsRuntimeProjection.Patch(this, strings, ref imageRuntimeVersion, ref blobHeap);
     }
     if (assembly == null && AssemblyTable.records.Length != 0)
     {
         assembly = new AssemblyReader(location, this);
     }
     this.assembly = assembly;
 }