title: MVC EditforTemplate: Index rendered Wrong
body: <p>In the EditorTemplates, I have a Template which accepts and Model of Type <code>List&lt;string&gt;</code>. This should create an Textbox for each string in the list.</p>
  
  <p>In the Model, the Property has the <code>[UIHint("EditList")]</code>. Now when I render it to the Page, the Template is called correctly, but the index is set wrong. When I submit the form I get:</p>
  
  <pre><code>MyList.[0]:test123
  </code></pre>
  
  <p>Instead of </p>
  
  <pre><code>MyList[0]:test123
  </code></pre>
  
  <p><strong>I'm using MVC 3!</strong>, the same code workd in my test project which uses MVC 5</p>
  
  <p>View:</p>
  
  <pre><code>&lt;div class="col-md-10"&gt;
      @Html.EditorFor(model =&gt; model.MyList)
      @Html.ValidationMessageFor(model =&gt; model.MyList)
  &lt;/div&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>public class FormTest
      {
          [UIHint("EditListWithAddButton")]
          public List&lt;string&gt; MyList { get; set; }
      }
  </code></pre>
  
  <p>EditorForTemplate:</p>
  
  <pre><code>@model List&lt;string&gt;
  &lt;div class="EditListWithAddButton"&gt;
      &lt;ul&gt;
          @for (int i = 0; i &lt; Model.Count(); i++)
          {
              &lt;li&gt;@Html.EditorFor(model =&gt; Model[i])&lt;/li&gt;
          }
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>