How can I keep a ref to an object's state at a given time?
问题 My goal is to save in a file the callstack state when an exception is raised. But I have one major restraint: I cannot touch any of the existing code. My goal is to implement that in a context where I'm unaware of the current workflow. So I can use it in any C# Project. To do so I need to have access to all the nested methods that lead to the exception but also all the method's arguments. Until now I used postsharp OnMethodBoundaryAspect which allow me to define OnEntry, OnSucess, and