Say I have some code like
namespace Portal { public class Author { public Author() { } private void SomeMethod(){ string myMethodName = ''; // myMethodName = 'Portal.Author.SomeMethod()'; } } }
Can I find out the name of the method I am using? In my example I’ld like to programmatically set myMethodName to the name of the current method (ie in this case 'Portal.Author.SomeMethod').
Thanks
1 Answer