Getting the name of a function

  • Thread starter Thread starter Matias
  • Start date Start date
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
 
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
 
Back
Top