How can I get programmatic access to the call stack?
+5
A:
You can use the StackTrace and StrackFrame classes in System.Diagnostics.
James Avery
2008-08-17 00:50:07
A:
@Brad, the right way is to use the StackTrace and StackFrame classes as James mentions. Throwing an exception just to get the stack trace is completely misusing exceptions.
Scott Dorman
2008-08-17 13:20:43