W
Wojtek
This has probably been hashed to death, however,
It these a way to extract the name of the method from within that
method?
public String getFoo()
{
Log.trace(this.class.GetName(), "getFoo", "I am in the method");
return "Foo";
}
public String getFooBar()
{
Log.trace(this.class.GetName(), "getFooBar", "I am in the method");
return getFoo() + "Bar";
}
Something cheap, preferrably done by the compiler as a compiler
directive, rather than a runtime action.
It these a way to extract the name of the method from within that
method?
public String getFoo()
{
Log.trace(this.class.GetName(), "getFoo", "I am in the method");
return "Foo";
}
public String getFooBar()
{
Log.trace(this.class.GetName(), "getFooBar", "I am in the method");
return getFoo() + "Bar";
}
Something cheap, preferrably done by the compiler as a compiler
directive, rather than a runtime action.