Hi,

On Tue, Jul 12, 2011 at 2:24 AM, torman <[email protected]> wrote:
> My sample code:
>
>   SPSecurity.RunWithElevatedPrivileges(delegate()
>   {
>       File.Delete("test.xml");
>   });
>
> I need to get the body of the delegate method (here the
> 'File.Delete...').

The implementation of an anonymous method is compiler specific.

In this case, the C# compiler should be able to cache a static
delegate. Have a look with ildasm into the method which invokes
RunWithElevatedPrivileges.

Jb

-- 
--
mono-cecil

Reply via email to