title: Linq to XML -Dictionary conversion
body: <p><em>How to store the nodes of the following into Dictionary where int is an autogenerated Key and string (value of the node) using LINQ ?</em></p>
  
  <p><strong><code>Elements:</code></strong></p>
  
  <pre><code>XElement instructors =
           XElement.Parse(
                            @"&lt;instructors&gt;
                                 &lt;instructor&gt;Daniel&lt;/instructor&gt;
                                 &lt;instructor&gt;Joel&lt;/instructor&gt;
                                 &lt;instructor&gt;Eric&lt;/instructor&gt;
                                 &lt;instructor&gt;Scott&lt;/instructor&gt;
                                 &lt;instructor&gt;Joehan&lt;/instructor&gt; 
                           &lt;/instructors&gt;"
          );
  </code></pre>
  
  <p><strong><code>partially attempted code is given below :</code></strong></p>
  
  <pre><code>var  qry = from instr in instructors.Elements("instructor")
  where((p,index)=&gt; **incomplete**).select..**incomplete**; 
  </code></pre>
  
  <p>How to turn my selection into <code>Dictionary&lt;int,String&gt;</code> ? (Key should start from 1;In Linq  indicies start from Zero).</p>