C# 获取当前函数名

 

var currentMethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;

posted @ 2023-07-07 10:41  剑存古风  阅读(55)  评论(0编辑  收藏  举报