Create and initialize dictionary from list
<p>Is there a way to combine below two statements into one, so you can create and initialize a dictionary from an array in one single statement?</p>

<pre><code>var myDictionary = new Dictionary&lt;int, string&gt;();
myList.ForEach(i =&gt; myDictionary.Add(i.property1, i.property2));
</code></pre>

<p>(whether or not that makes the code easier to read is another topic :-))</p>