title: Get Method Name From Action
body: <p>Is it possible to get a method name from an action?  I know I could always pass a string, but I was hoping for something a little more clever.</p>
  
  <pre><code>    public bool DeviceCommand(Action apiCall)
      {
          //It would be nice to log the method name that was passed in
          try
          {
              apiCall();
          }
          catch (Exception exc)
          {
              LogException(exc);
              return false;
          }        
  
          return true;
      }  
  </code></pre>
  
  <p>Usage looks like this:</p>
  
  <pre><code>void MyMethod()
  (
       DeviceCommand(() =&gt; api.WriteConfig(config));
  )
  </code></pre>