In the new ASP.NET 5 (vNext) The call to get the current method name seems to have been removed.
The code below shows the call i was hoping to make:
string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
However the call to GetCurrentMethod()
will cause a compiler error.
CS0117 'MethodBase' does not contain a definition for 'GetCurrentMethod'
I am using DNX Core 5.0.
I have checked the GitHub issues for .NET Core here but have found no mention of the method.
Has this been removed on purpose?
What should i use instead?