title: Please help with a dictionary comprehension in LINQ, C#
body: <p>Python's equivalent of what I want is:</p>
  
  <pre><code>&gt;&gt;&gt; #C#: Dictionary&lt;int, string&gt; tempDict = ...
  &gt;&gt;&gt; tempDict = {i : str(i) for i in range(200000)}
  &gt;&gt;&gt; tempDict[5]
  '5'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>The example is a bit simplified, but I can modify it myself; do not want to bother you with details of proprietary classes.</p>
  
  <p>Got it:</p>
  
  <pre><code>var y = (from x in Enumerable.Range(0, 20000) select Guid.NewGuid()).ToDictionary(g=&gt;g, g=&gt;new MyObj(g))
  </code></pre>