Feed Icon  


  • Bryant Likes
  • Send mail to the author(s) E-mail
  • twitter
  • View Bryant Likes's profile on LinkedIn
  • del.icio.us
Get Microsoft Silverlight
by clicking "Install Microsoft Silverlight" you accept the
Silverlight license agreement

Hosting By

Hot Topics


Open Source Projects



Exploring the Call Stack and Web Searches

Posted in General at Tuesday, June 28, 2005 9:22 AM Pacific Daylight Time

Today I was trying to figure out how to get the assembly and type of the class that was calling a method from within the method itself. Since I have MSN Search installed I typed it into my MSN Search box in IE. After several tries without finding anything useful I fired up Google and did one search and came across this great blog post by Michael Ames:

The Call Stack is an indispensable and familiar tool for debugging applications.  Sometimes it is helpful to programmatically access the call stack at run-time.  For example, a generic logging function could detect and output the name of the class and method that called it.  The .NET Framework provides this functionality through the StackTrace, StackFrame and MethodBase classes.

He goes on to demonstrate how to use the call stack which was exactly what I was looking for (thanks Michael!). So why did MSN miss this?

Thursday, June 30, 2005 8:32:00 AM (Pacific Daylight Time, UTC-07:00)
MSN does not rank weblogs very high yet, while Google sometimes gives them too much weight.
Friday, October 05, 2007 1:17:00 AM (Pacific Daylight Time, UTC-07:00)
Thanks for posting a note helping to locate info on programmatic access to the call stack.

- mark
Mark Krueger
Comments are closed.