dt
2004-05-31 23:27:36 UTC
Hi All,
Has anyone done any benchmarks with Methodbase.GetCurrentMethod? I would
like to get an idea on the kind of overhead this imposes on the code.
Basically, what I'm doing is passing the CurrentMethod to a centralised
ExceptionHandler and want to get the name of the function that threw the
error (as opposed to the function that is raising the error, which in this
case is the exception handler). I could pass the function name as a string
if there is a significant performance overhead of
MethodBase.GetCurrentMethod.
Thanks,
d.
Has anyone done any benchmarks with Methodbase.GetCurrentMethod? I would
like to get an idea on the kind of overhead this imposes on the code.
Basically, what I'm doing is passing the CurrentMethod to a centralised
ExceptionHandler and want to get the name of the function that threw the
error (as opposed to the function that is raising the error, which in this
case is the exception handler). I could pass the function name as a string
if there is a significant performance overhead of
MethodBase.GetCurrentMethod.
Thanks,
d.