I am trying to create code something like this
Foo.Do(() => Method1("Parameter"));
Where Foo looks like this
public static class Foo
{
public static void Do(Action action)
{
}
}
Unfortunatly the IL reflectior show does not really help.
The compilers seems to move the "Method1("Parameter")" to its own
parameterless method.
Do I need to do the same with Cecil or is there an easier way?
--
--
mono-cecil
