Quick background: Trying to create a method that will return a pre-defined string based on the method that calls it. (bit glossed over but near enough).
I am intending to use the [CallerMemberName
] Attribute, but my question is:
=> Do I need to use the MethodImplOptions.NoInlining
with this attribute, or is that implicitly applied by the compiler?
There are many examples of both the CallerMemberName
attribute, and the older version for pre .net4.5 frameworks which use MethodImplOptions.NoInlining
method attribute but nothing which explicitly say that you dont need to use them together?
Thanks in advance, and for reading!