スキップしてメイン コンテンツに移動

C# Get Current Method Name

This kind of stuff might be rare case. But here is the code snippet.
        public static string GetMethodName()
        {
            return new StackTrace().GetFrame(1).GetMethod().Name;
        }

コメント