Hey,

On Sun, Jul 4, 2010 at 9:55 AM, eran <[email protected]> wrote:
> ModuleDefinition module = ModuleDefinition.ReadModule(@"C:\some_project
> \some_project\Logging.dll");
> MethodReference m_logMethod =
> module.Import(typeof(Logger).GetMethod("Log"));
>
> Later I add a call instruction:
> Instruction instruction_1 =
> processor.Create(OpCodes.Call,m_logMethod);
>
> Later writing back:
> module.Write(...)
>
> The emitted IL instruction is:
> call       void [*]Logging.Logger::Log(string)
> it doesn't work as it should be:
> call       void [Logging]Logging.Logger::Log(string)
>
> How can I emit the correct IL?

The code is good, so it looks like a Cecil bug. Could you provide me
with a repro?

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to