K
kilian koltari
I need to determine what method called a current method. I believe i need to
use reflection to retrieve the calling methods name but can't find info on
it.
any pointers?
Details of what i am doing.
I have a base class and will have several classes inheriting from it in the
future.I need to in the constructor of the base class load an xml file that
has the same name and the child
class. since the base class constructor has no idea of the classname that is
being loaded(the child class) I thought it might be easiar to just determine
the calling methods name since this will be the constuctor of the child
class.
use reflection to retrieve the calling methods name but can't find info on
it.
any pointers?
Details of what i am doing.
I have a base class and will have several classes inheriting from it in the
future.I need to in the constructor of the base class load an xml file that
has the same name and the child
class. since the base class constructor has no idea of the classname that is
being loaded(the child class) I thought it might be easiar to just determine
the calling methods name since this will be the constuctor of the child
class.