可以使用创建一个StackFrame类, 然后通过GetMethod方法来获取一个方法的信息. 如下: MessageBox.Show("The current method name is :" + new System.Diagnostics.StackFrame().GetMethod().Name);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。