/ Published in: C#
URL: http://www.csharp-examples.net/reflection-calling-method-name/
Get the calling method using reflection.
Expand |
Embed | Plain Text
using System.Diagnostics; // get call stack // get calling method name Console.WriteLine(stackTrace.GetFrame(1).GetMethod().Name);
You need to login to post a comment.
