Bryant Likes's Blog

It's all about WebData

Recent Posts

Tags

News


  • Windows Live Alerts
    View Bryant Likes's profile on LinkedIn

    Me

    The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Community

Email Notifications

Archives

Exploring the Call Stack and Web Searches

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?

Posted: Jun 28 2005, 04:22 PM by bryantlikes | with 2 comment(s)
Filed under:

Comments

bryantlikes said:

MSN does not rank weblogs very high yet, while Google sometimes gives them too much weight.
# June 30, 2005 3:32 PM

Mark Krueger said:

Thanks for posting a note helping to locate info on programmatic access to the call stack.

- mark

# October 5, 2007 8:17 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)