I have a circumstance when I selected several Action objects, and I have threadpool working through each Action . However, if the application closes before the queue is empty, I would like to register what remains in the queue before closing.
Is it possible to get the body of a method from an Action object? I see a MethodBody object from Action.Method.GetMethodBody() , but I see no way to get this as a string.
Any thoughts or am I crazy?
EDIT: One more thing; I would also like to keep information about the state. That is, I would also like to save the values โโof any variables used in Action .
source share