Permalink
Browse files

If you spec an AssemblyResolver in you ReaderParameters when calling …

…read for an ModuleDef/ AssemblyDef the SubModules are still created with an new AssemblyResolver.

I changed that with the changes of this commit.
If that isnt correct I´d like to do that just under some a condition so that you can enable such a behavior/ or impl. something like an SubModuleReaderParametersProvider or that the ReaderParameters have a method create ReaderParameters for SubModules or something like that.
  • Loading branch information...
Fijo committed Feb 20, 2013
1 parent ec2a54f commit 199dc11a486ab7664dbe69003b6862c66410a3f0
Showing with 1 addition and 0 deletions.
  1. +1 −0 Mono.Cecil/AssemblyReader.cs
@@ -552,6 +552,7 @@ public Collection<ModuleDefinition> ReadModules ()
var parameters = new ReaderParameters {
ReadingMode = module.ReadingMode,
SymbolReaderProvider = module.SymbolReaderProvider,
+ AssemblyResolver = module.AssemblyResolver
};
modules.Add (ModuleDefinition.ReadModule (

0 comments on commit 199dc11

Please sign in to comment.