In this short code example I’m going to show you a method to identify what class (including the namespace) you’re currently in and what the name of the current method is. You can also use this technique to find out more information about the method but I won’t go into that detail here.
System.Reflection.MethodBase.GetCurrentMethod().ReflectedType.FullName 'Get Current Class Name and Namespace System.Reflection.MethodBase.GetCurrentMethod().Name 'Get Current Method Name
How to find out current class/method name
Solved my problem. Thanks!