C# name of calling method plus current method

StackTrace st = new StackTrace();

throw new NotImplementedException(st.GetFrame(1).GetMethod().Name + “.” + System.Reflection.MethodBase.GetCurrentMethod().Name + ” is not yet implemented.”);

This entry was posted in C#, Programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.