Yves,
interface IAssemblyResolver {
AssemblyDefinition Resolve (AssemblyNameReference reference);
}
This has no meaning? :)
A documentation would read like: An assembly resolver is responsible
for resolving references to an assembly into its definition.
(Which is arguably the same has the above, just a different language :)
You can also have a look at the default implementation:
https://github.com/jbevain/cecil/blob/master/Mono.Cecil/BaseAssemblyResolver.cs
https://github.com/jbevain/cecil/blob/master/Mono.Cecil/DefaultAssemblyResolver.cs
It's not a completely straightforward process, if you want a complete
understanding you can checkout and build Cecil in your project and
step into the code.
--
Now to answer your question.
The default resolver only caches the assemblies it resolves. Not those
you read yourself. Meaning, if you use ModuleDefiniton.ReadModule or
AssemblyDefinition.ReadAssembly, those won't be cached for you.
You can easily implement that by creating your own class extending
DefaultAssemblyResolver, and calling RegisterAssembly on existing
assemblies.
Jb
> --
> --
> --
> mono-cecil
> ---
> You received this message because you are subscribed to the Google Groups
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mono-cecil+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.