title: Creating a select list from an array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4374237/how-to-find-the-index-particular-items-in-the-list-using-linq">how to find the index particular items in the list using linq?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to create a <code>IEnumerable&lt;SelectListItem&gt;</code> from an array of strings. </p>
  
  <pre><code>string[] months = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
  
  model.month = months
          .Select(r =&gt; new SelectListItem{Text = r, Value = ???});
  </code></pre>
  
  <p>Is there a way to access their index within this query?</p>