karatejb
Programming, painting and martial arts.
2013年8月14日 星期三
[C#] How to get the current Class/Method
1. Current class name:
this.GetType().Name;
2. Current method name:
using System.Reflection;
MethodBase.GetCurrentMethod().Name;
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言