Getting the name of a function

M

Matias

Is there any rapid way to identify the name of a function within the
function?

This can be achieved with StackTrace but this runs too slowly for my
needs as I am trying to measure performance.

My current less optimal solution would be to dissasemble the code and
then manually parse the code files and hardcode the function name into
the performance class, then reassemble.

Thanks,
Matias
 
G

Guest

Is there any rapid way to identify the name of a function within the
function?
MethodBase.GetCurrentMethod().Name


This can be achieved with StackTrace but this runs too slowly for my
needs as I am trying to measure performance.

In that case I probably wouldn't use the above either.


Mattias
 

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