Feed Icon  

Contact

  • 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

Tags

Open Source Projects

Archives

Ads

Exploring the Call Stack and Web Searches

Posted in General at Tuesday, 28 June 2005 09:22 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, 30 June 2005 08:32:00 (Pacific Daylight Time, UTC-07:00)
MSN does not rank weblogs very high yet, while Google sometimes gives them too much weight.
Friday, 05 October 2007 01:17:00 (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.