title: How do I index an ICollection<T> like they tell me to in this example?
body: <p>I'm trying list items in my MVC view, following this example: <a href="http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx/" rel="nofollow">Model Binding to a List</a>. I'm using MVC 5. There example says to do this:</p>
  
  <pre><code>&lt;%@ Page Inherits="ViewPage&lt;IList&lt;Book&gt;&gt;" %&gt;
  &lt;% for (int i = 0; i &lt; 3; i++) { %&gt;
      &lt;%: Html.EditorFor(m =&gt; m[i]) %&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>I'm trying to do this:</p>
  
  <pre><code>for (int i = 0; i &lt; Model.SubmissionTypesSelected.Count(); i++)
  {
      Html.EditorFor(m =&gt; m.SubmissionTypesSelected[i]);
  }
  </code></pre>
  
  <p><code>SubmissionTypesSelected</code> is defined like this: </p>
  
  <pre><code>public ICollection&lt;PTSubTypeSelected&gt; SubmissionTypesSelected { get; set; }
  </code></pre>
  
  <p>I get this message:</p>
  
  <blockquote>
    <p>Cannot apply indexing to an expression of type 'System.Collections.Generic.ICollection'</p>
  </blockquote>