title: How do you tell Resharper that a method parameter is a string containing a CSS class?
body: <p><strong>[Enable intellisense on HTMLHelper attribute for css classes]</strong></p>
  <p>I have this HTMLhelper:</p>
  <pre><code>public IHtmlString MyTextBoxFor&lt;TModel, TProperty&gt;(
      this HtmlHelper&lt;TModel&gt; html, 
      Expression&lt;Func&lt;TModel, TProperty&gt;&gt; propertyExpression, 
      string cssClass)
  {
      // ...
  }
  </code></pre>
  <p>I want Resharper to give me IntelliSense for CSS classes defined in my application when passing the value for the &quot;cssClass&quot; parameter.</p>
  <p>There are some code annotation attributes that Resharper recognizes, but none that seem directly related to marking a method parameter as being CSS classes.</p>
  <p>The closest I could find was <strong>[HtmlAttributeValue(string name)]</strong>.
  I tried to apply to the cssClass parameter like this:</p>
  <pre><code>public IHtmlString MyTextBoxFor&lt;TModel, TProperty&gt;(
      this HtmlHelper&lt;TModel&gt; html, 
      Expression&lt;Func&lt;TModel, TProperty&gt;&gt; propertyExpression, 
      [HtmlAttributeValue(&quot;class&quot;)] string cssClass)
  {
      // ...
  }
  </code></pre>
  <p>But that doesn't work. It would also be super awesome if Resharper would recognize the entered class and stop bugging me about unknown CSS classes in jQuery selector expressions (that operate on the textbox generated by the helper above).</p>
  <p><strong>Edit:</strong>
  Here's a screenshot of the kind of intellisense that is working for the &quot;htmlAttributes&quot; parameter of an action method. This is accomplished by using the [HtmlElementAttributes] annotation on the parameter.</p>
  <p><a href="https://i.stack.imgur.com/scT6s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/scT6s.png" alt="Resharper htmlAttributes intellisense" /></a></p>
  <p>I want a similar annotation that lets me put css classes in a string parameter and have the same intellisense appear showing css classes.</p>