Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2012-02-13から1日間の記事一覧

実行中のメソッドの名前を取得する

実行中のメソッドの名前を取得する方法を紹介します。ログ出力に便利です。 ソースコード using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.WriteLine(System.Reflection.MethodBase.GetCurrentMet…