title: Concat linq query result to string ?
body: <p>I have this simple class : </p>
  
  <pre><code>class A
  {
    public string Name { get; set; }
    public int Age { get; set; }
  }
  </code></pre>
  
  <p>And I have a dictionary  : </p>
  
  <p><code>Dictionary&lt;string,A&gt;  dic = new Dictionary&lt;string,A&gt;();</code></p>
  
  <pre><code>dic["a"]=new A(){ Age=2, Name="aa"};
  dic["b"]=new A(){ Age=3, Name="baa"};
  dic["c"]=new A(){ Age=4, Name="caa"};
  </code></pre>
  
  <p>And here I see all the items in a visible way : </p>
  
  <p><code>Console.WriteLine (dic.Select(f=&gt;f.Key+"  =&gt;"+f.Value.Age+"      "+f.Value.Name));</code></p>
  
  <p>output : </p>
  
  <pre><code>a  =&gt;2      aa  
  b  =&gt;3      baa  
  c  =&gt;4      caa 
  </code></pre>
  
  <p>but I want it to be as a string !</p>
  
  <p>something like this string value : </p>
  
  <pre><code>@"a  =&gt;2      aa  \n
    b  =&gt;3      baa  \n
    c  =&gt;4      caa ";
  </code></pre>
  
  <p><strong>I could</strong> do it with ToArray and string.join : </p>
  
  <pre><code>var t=dic.Select(f=&gt;f.Key+"  =&gt;"+f.Value.Age+"      "+f.Value.Name);
  Console.WriteLine (String.Join("\n",t.ToArray() ));
  </code></pre>
  
  <p>But I'm sure there is a better ( shorter  , elegant) way
  using this statement : (with a bit of addition)</p>
  
  <p><code>dic.Select(f=&gt;f.Key+"  =&gt;"+f.Value.Age+"      "+f.Value.Name)</code></p>
  
  <p>Any help ?</p>