Telegram.Model.Wrappers.UserModel.GetCurrentMethod C# (CSharp) Method

GetCurrentMethod() public static method

public static GetCurrentMethod ( ) : string
return string
        public static string GetCurrentMethod() {
            string trace = "";
            StackTrace st = new StackTrace();

            foreach(StackFrame frame in st.GetFrames()) {
                trace += " " + frame.GetMethod().Name;
            }

            return trace;
        }