title: How do I tell ReSharper that an attribute means that a method is used?
body: <p>I'm playing with <a href="http://www.specflow.org/" rel="noreferrer">SpecFlow</a>, and ReSharper thinks that my step definitions are unused (I guess because they're used via reflection):</p>
  
  <pre><code>[Binding]
  public class StepDefinitions
  {
      // ...
  
      [When(@"I press add")]
      public void WhenIPressAdd()   // R# thinks this is unused
      {
          _calculator.PressAdd();
      }
  
      // ...
  }
  </code></pre>
  
  <p>How can I tell ReSharper that methods with <code>[Given]</code>, <code>[When]</code>, <code>[Then]</code> attributes (etc.) are actually used? I don't want to use <code>// ReSharper disable UnusedMember.Global</code> comments.</p>
  
  <p>I could also mark each method (or the whole class) with <code>[JetBrains.Annotations.UsedImplicitly]</code>. I don't particularly want to do that either.</p>