title: How to select multiple values from a Dictionary using Linq as simple as possible
body: <p>I need to select a number of values (into a List) from a Dictionary based on a subset of keys.</p>
  
  <p>I'm trying to do this in a single line of code using Linq but what I have found so far seems quite long and clumsy. What would be the shortest (cleanest) way to do this?</p>
  
  <p>This is what I have now (the keys are Strings and keysToSelect is a List of keys to select):</p>
  
  <pre><code>List&lt;ValueType&gt; selectedValues = dictionary1.Where(x =&gt; keysToSelect.Contains(x.Key))
                                              .ToDictionary&lt;String, valueType&gt;(x =&gt; x.Key,
                                                                               x =&gt; x.Value)
                                              .Values.ToList;
  </code></pre>
  
  <p>Thank you.</p>