title: Concat all strings from dictionary (values) using LINQ without external variable
body: <p>Having dictionary where key can be anything (e.g. int) and values is some text I want to output.</p>
  
  <pre><code>Dictionary&lt;int, string&gt; dict = new Dictionary&lt;int, string&gt;();
  
  dict.Add(1, "This is the first line.");
  dict.Add(2, "This is the second line.");
  dict.Add(3, "This is the third line.");
  </code></pre>
  
  <p>To get output:</p>
  
  <pre><code>string lResult = dict. ... //there should go the LINQ query
  Console.WriteLine(lResult);
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>This is the first line.
  This is the second line.
  This is the third line.
  </code></pre>
  
  <p><strong>Q: Is it possible to concatenate the lines from <code>Dictionary</code> to have them as one string without using external variable?</strong></p>
  
  <hr>
  
  <p>I tried approach using some <code>Select/SelectMany/Zip</code> solutions, but I cannot figure how to pass the value from 1 LINQ call to other without using external variable.</p>
  
  <p>Another idea is to <code>Select</code> values, put them to the List and then Concatenate (again using external variable). Like:</p>
  
  <pre><code>string tmp = "";
  dict.Select(a =&gt; a.Value).ToList().ForEach(b =&gt; tmp += b);
  </code></pre>