title: Dash (-) in anonymous class member
body: <p>is it possible to use dash (-) in a member name of an anonymous class? I'm mainly interested in this to use with asp.net mvc to pass custom attributes to html-helpers, since I want my html to pass html5-validation, this starting with data-.</p>
  
  <p>Exemple that doesn't work:</p>
  
  <pre><code>&lt;%=Html.TextBoxFor(x =&gt; x.Something, new {data-animal = "pony"})%&gt;
  </code></pre>
  
  <p>Putting a @ in front of the member name doesn't do the trick either.</p>
  
  <p>Update: If this isn't possible, is there a recommended way todo what I want? My current temporary solution is to add a replace to the whole thing like this:</p>
  
  <pre><code>&lt;%=Html.TextBoxFor(x =&gt; x.Something, new {data___animal = "pony"}).Replace("___", "-")%&gt;
  </code></pre>
  
  <p>But that sucks, because it's ugly and will break when <code>Model.Something</code> contains three underscores. Buhu.</p>