Skip to content

Commit

Permalink
If you spec an AssemblyResolver in you ReaderParameters when calling …
Browse files Browse the repository at this point in the history
…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 199dc11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Mono.Cecil/AssemblyReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 199dc11

Please sign in to comment.