happmaoo 发表于 2013-1-19 04:09:09

c#获取正在执行的函数名

// Display the most recent function callSystem.Diagnostics.StackFrame sf = new System.Diagnostics.StackFrame(0);
Console.WriteLine(sf.GetMethod().Name);
页: [1]
查看完整版本: c#获取正在执行的函数名