title: Linq using Select and an Indexer
body: <p>I have the following query that runs successfully in LinqPad:</p>
  
  <pre><code>    var results = 
      from container in Container
      join containerType in ContainerType on container.ContainerType equals containerType
      where containerType.ContainerTypeID == 2
      select new { ContainerID = container.ContainerID, TypeID = container.ContainerTypeID};
  
  results.Dump();
  </code></pre>
  
  <p>I would like to change the select to use an indexer so that the select would look something like this:  </p>
  
  <pre><code>select new { ContainerID = container.ContainerID, TypeID = container.ContainerTypeID, ContainerIndex = index  };
  </code></pre>
  
  <p>What I cannot seem to get right is the proper syntax for select to use the select indexer.</p>
  
  <p>Thanks for your help.</p>