Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • might be something with Reflection in the language that could help? Commented Sep 25, 2008 at 20:27
  • You can do it via reflection but it gets expensive over the course of many function calls. Commented Sep 25, 2008 at 20:28
  • 3
    I don't think you can do this with Reflection or StackTrace/StackFrame. I think your only choice may be to use an AOP or post-processing framework, like PostSharp. Commented Sep 25, 2008 at 20:29