I'm wondering is there is a better or newer way to get the caller MethodInfo.
The only solution I have seen is using the StackFrame, though people mention that it's not always reliable in release builds. And it does not seem to work with async calls either :(
Alternative, I can use the CallerMemberNameAttribute, but that will only give me the method name as a string. It will be impossible to find any custom attributes on that method without knowing the class type (which is my intention).
Could I do something with the CallerFilePathAttribute?