I know you can use the property
System.Reflecti on.MethodInfo.G etCurrentMethod ().Name to get the name
of the function currently be executed.
What I want to do is get the name of the function which called the
function I am currently in.
For example (pardon my pseudo-code):
public void ABC()
{
// Do some stuff here
XYZ();
}
public void XYZ()
{
//I want to determined the name of the function that called XYZ.
//In this case, ABC
}
Any thoughts???
Thanks -
Tim Burda
Tim.Burda@si-intl.com
System.Reflecti on.MethodInfo.G etCurrentMethod ().Name to get the name
of the function currently be executed.
What I want to do is get the name of the function which called the
function I am currently in.
For example (pardon my pseudo-code):
public void ABC()
{
// Do some stuff here
XYZ();
}
public void XYZ()
{
//I want to determined the name of the function that called XYZ.
//In this case, ABC
}
Any thoughts???
Thanks -
Tim Burda
Tim.Burda@si-intl.com
Comment