Is there a simple way to print the code of a delegate at runtime ? (that "contains one method").
public delegate void SimpleDelegate();
SimpleDelegate delegateInstance =
delegate { DoSomeStuff(); int i = DoOtherStuff() };
Now, I would like to display on the screen the body of delegateInstance. That is to say, doing something like reflector. Can I do this ? Maybe I can use some .pdb files ?