[Edit]
+
0
-
0
C# get current method name
1 2 3 4 5 6string methodName = nameof(this.SomeMethodHere); // C# 6 or later // or MethodBase method = MethodBase.GetCurrentMethod(); // call it inside your method string methodName = method.Name;
1 2 3 4 5 6string methodName = nameof(this.SomeMethodHere); // C# 6 or later // or MethodBase method = MethodBase.GetCurrentMethod(); // call it inside your method string methodName = method.Name;