Hi all~
There is no problems to inject a user method or WriteLine method call
to assemblies with Mono.Cecil.
But I'm stuck with inject a statement to catch argument values and
shows the values.
The satement I'd like to inject might look like "
Console.WriteLine(arg1, arg2); "

Example:
VictimAssemblies
{
    public static void Main()
    {
          Show("Hello", 2010);
    }
    private void Show(string msg, int number)
    {
         Console.WriteLine("I'd like to inject code below to show
arguments values of this method");
===> ??
    }
}

If you have any idea or example.
Please help me to figure this out.
Thanx.

-- 
--
mono-cecil

Reply via email to