OK. In the MethodReference "SPSecurity.RunWithElevatedPrivileges" I can find the type of the delegate (in my case "CodeToRunElevated") and I can find 4 MethodDefinitions (Constructor, BeginInvoke, Invoke, EndInvoke). The "Invoke" call contains 2 Parameters: the callback (ASyncCallback) and an object.
But there is no information, which can tell me, that the callback is pointing to method "<ContainingMethodName>b__0". The body of all 4 methods is null. Is there any extension in Mono.Cecil, which could help me to get the body of my delegate method? I believe, I'm not the first one with this problem :-) -- -- mono-cecil
