Thank you very much. I really missed that somehow. :(

One loosely related question: what is an assembly, and what is a module?
So far I believed that an assembly is essentially an exe or dll file. Now it
more looks like that it's a module, e.g. the ModuleDefinition's
FullyQualifiedName contains the full path to the exe/dll file.
But that argues with the fact the modified exe/dll can be written to the
disk with the Write(string filePath) method in the AssemblyDefinition object
as well.
I'm rather confused about this right now, and Google doesn't seem to have
any useful answers.

Can you please clarify this a little bit for me?

Thanks so much!

2010/7/3 Jb Evain <[email protected]>

> Hey,
>
> On Sat, Jul 3, 2010 at 10:20 AM, Gábor Kozár <[email protected]> wrote:
> > Did I miss something? Is it possible to use a custom IAssemblyResolver?
>
> Yes.
>
> IAssemblyResolver custom_resolver = ...;
>
> ModuleDefinition module = ModuleDefinition.ReadModule ("TestLib.dll",
> new ReaderParameters { AssemblyResolver = custom_resolver });
>
> --
> Jb Evain  <[email protected]>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to