title: How to use CallerMemberName with an interface method
body: <p>I am navigating through some 700K lines of code.   A lot of interface implementation and DI usage.   I am trying to figure out where a particular method is getting called from, hence I am trying to use <code>[CallerMemberName]</code>.  </p>
  
  <p>All the examples I see on google etc are something like this:</p>
  
  <pre><code>public void TraceMessage(string message,
          [System.Runtime.CompilerServices.CallerMemberName] string memberName = "",
          [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "",
          [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0)
  </code></pre>
  
  <p>Where optional parms are used to get the info.   My problem is that this method is part of an interface implementation. So, when I change the method signature the compiler is yelling at me.  </p>
  
  <p>Any suggestions on how to make an interface method play nice with <code>[CallerMembername]</code> would be greatly appreciated.</p>