N
Nicholas Paldino [.NET/C# MVP]
Tamir,
In order to do this, you will have to instantiate a new instance of the
StackFrame class. You need to pass 1 to the constructor to let it know to
go up one frame in the stack. Once you have that, you can call the
GetMethod method to get the MethodBase implementation representing the
method that called you. Finally, use the Name property to get the name.
Hope this helps.
In order to do this, you will have to instantiate a new instance of the
StackFrame class. You need to pass 1 to the constructor to let it know to
go up one frame in the stack. Once you have that, you can call the
GetMethod method to get the MethodBase implementation representing the
method that called you. Finally, use the Name property to get the name.
Hope this helps.