Thanks for your fast response.

The strange thing is: I can get the anonymous method and the body of
this method
via Mono.Cecil.

Because when I check the TypeDefinition of my class (in which the
delegate is located) I
can find the MethodDefinition with name "<ContainingMethodName>b__0".
If I have multiple
delegates the names are "<ContainingMethodName>b__1",
"<ContainingMethodName>b__2" and
so on.

But I can't get the connection between the MethodReference to
"SPSecurity.RunWithElevatedPrivileges" and the anonymous method
"<ContainingMethodName>b__0".

Any idea?

-- 
--
mono-cecil

Reply via email to