Hi,

On Tue, Aug 16, 2011 at 10:25 AM, VishalN <[email protected]> wrote:
> I am loading an object and when I get it's Type details, I want to
> changed the assembly information of that object at runtime. Is it
> possible.

It's not possible. When the assembly is loaded by the runtime, it's
too late for Cecil to modify it (you can, however, using the profiling
APIs to hot swap method bodies, but it's not very easy).

You need to pre-process assemblies with Cecil before, or intercept the
moment the runtime requires them (using events such as
AppDomain.AssemblyResolve) to patch assemblies before they are
actually loaded.

Jb

-- 
--
mono-cecil

Reply via email to