F
Fernando Cacciola
For logging purposes, is there any Runtime facility to obtain the name (with
namepsaces) of a method from within?
That is, insgiven:
namespace A
{
class Foo
{
void Bar()
{
Log( TheFunctionNameHere instead of "A::Foo.Bar()");
}
}
}
I suppose I can extract this from a StackTrace object, but I suspect that
can be quite expensive.
TIA
--
------
Fernando Cacciola
SciSoft
http://certuscode.wordpress.com
http://fcacciola.50webs.com
http://fcacciola.wordpress.com
namepsaces) of a method from within?
That is, insgiven:
namespace A
{
class Foo
{
void Bar()
{
Log( TheFunctionNameHere instead of "A::Foo.Bar()");
}
}
}
I suppose I can extract this from a StackTrace object, but I suspect that
can be quite expensive.
TIA
--
------
Fernando Cacciola
SciSoft
http://certuscode.wordpress.com
http://fcacciola.50webs.com
http://fcacciola.wordpress.com