[Edit]
+
0
-
0
C# get current method name
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16using System; public static class Program { private static void DoMethod() { string name = nameof(DoMethod); Console.WriteLine("Currently called method name is " + name); } public static void Main(string[] args) { DoMethod(); } }