Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

wpf get function name

public static String GetCallingStack()
        {
            try
            {
                StackTrace stackTrace = new StackTrace();
                return stackTrace.GetFrame(1).GetMethod().Name;
            }
            catch(Exception e)
            {
                return "";
            }
        }
 
PREVIOUS NEXT
Tagged: #wpf #function
ADD COMMENT
Topic
Name
4+4 =