title: Inline Declaration Of Dictionary<> in C# with FOREACH()
body: <p>Can anybody help out with the syntax of something like this:</p>
  
  <pre><code>Dictionary&lt;string,string&gt; dict = new Dictionary&lt;string,string&gt;()
  {
           foreach(var i in collection&lt;Items&gt;)
  -----add i to dictionary
  }
  </code></pre>