This is what I am talking about:
Public Shared Sub Test1() Test2() End Sub Public Shared Sub Test2() MsgBox(Test2.LastMethod) ' Test1 End Sub
I would imagine if this is possible, System.Reflection will be utilized?
Any thoughts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at the System.Diagnostics.StackFrame class.
As a side note you shouldn’t depend on who you caller is and shouldn’t use this unless you are writing a debugger or for logging purposes.