title: adding index to linq query result
body: <p>I have a linq query that returns a list of MyObject. I'd like to add a property to MyObject called TheIndex and that contains the ordinate of the item in the sequence.</p>
  
  <p>In other words, I need something like this:</p>
  
  <pre><code>var TheResult = from d in MyDataContext
                  where.....
                  select new MyObject
                  {
                     Property1 = d.whatever,
  
                     TheIndex = ?
  
                   }
  </code></pre>
  
  <p>The query returns a list of MyObject and I'd like each item in the list to contain the index as one of its property.</p>
  
  <p>Thanks.</p>