title: How to wrap a method via attributes?
body: <p>I'm wondering if it's possible to wrap a method only by adding an attribute.</p>
  
  <p>Example: I want to log the execution time a method takes.</p>
  
  <pre><code>[LogTimings]
  public void work()
  {
    ..
  }
  </code></pre>
  
  <p>This is kind of wrapping a method into another one (<a href="https://stackoverflow.com/questions/258119/python-wrapping-method-invocations-with-pre-and-post-methods">see this python implementation</a>).</p>