GetMethodName using Reflections Namespace

J

JerryWEC

I have a question regarding reflections or any other method of getting the
method name of the current method...

Does anyone have a method already built to capture the current method name?
I'm sure this can be coded using reflections but have never used this
namespace. I need a little help in the right direction or the code for a
method to return this name.

I'd like to call this method in my error handling code just before handling
each error. I know I can also parse the .stacktrace to get this name as
well. However, it just seems to me that this requirement should be coded
from Reflections or a method call in the My namespace.

Any help is greatly appreciated!!!

JerryM
 
J

JerryWEC

Thanks for the quick response!! I'll write this down for use on my next
task.

I just realized that I can used it now because I'm in VB6. I work in VB6,
VB.net (FW1.1 and 2.0) and some C#.

Thanks! JerryM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top