Architect's Log

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

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

実行中のメソッドを宣言するクラスの名前を取得する

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