G
Guest
Is there a way to get the name of the class and method in code when not
running in debugger.
For example:
class myclass {
const string modulename = "myclass";
public void mymethod()
{
const string methodname = "mymethod";
string output = "You are in " + modulename + "." + methodname;
}
}
Is there a way to determine the class and method without having to hard code
them?
I use this functionality when reporting messages to the database so that I
can determine where something occurred.
Thank you for any help.
Gregory McCallum
(e-mail address removed)
running in debugger.
For example:
class myclass {
const string modulename = "myclass";
public void mymethod()
{
const string methodname = "mymethod";
string output = "You are in " + modulename + "." + methodname;
}
}
Is there a way to determine the class and method without having to hard code
them?
I use this functionality when reporting messages to the database so that I
can determine where something occurred.
Thank you for any help.
Gregory McCallum
(e-mail address removed)