I saw many questions regarding this error, but all/most of them contain complex code or types.
I used this line for many years to prompt the name of the method with an error:
string currentMethod = System.Reflection.MethodBase.GetCurrentMethod().Name;
But now I get this error :
warning CS8602: Dereference of a possibly null reference.
What should I change / Is there another way to get the name of the current method without having this error?
Thanks