O
OneFang
Hi
I hope I make sense here.
I want to be able to obtain the name of the method that calls a method
within my class.
So If I have my class that has a method LogInfo()
And my client code has a method ProcessRequest()
that makes a call to myClass.LogInfo(data)
then I want to be able to obtain the name 'ProcessRequest' from within
the LogInfo() method, without having to pass the method name across.
I'm assuming it's some form of reflection, but really just guessing.
thanks for any info.
Martyn
I hope I make sense here.
I want to be able to obtain the name of the method that calls a method
within my class.
So If I have my class that has a method LogInfo()
And my client code has a method ProcessRequest()
that makes a call to myClass.LogInfo(data)
then I want to be able to obtain the name 'ProcessRequest' from within
the LogInfo() method, without having to pass the method name across.
I'm assuming it's some form of reflection, but really just guessing.
thanks for any info.
Martyn
