title: How to use Aggregate method of Dictionary<> in C#?
body: <p>I'm a beginner in C#. I have a dictionary like this : </p>
  
  <pre><code>{
    {"tom", "student"},
    {"rob", "teacher"},
    {"david", "lawyer"}
  }
  </code></pre>
  
  <p>I want to form this line : </p>
  
  <pre><code>tom = student, rob = teacher, david = lawyer
  </code></pre>
  
  <p>I want to use Aggregate extension method of <code>dictionary&lt;&gt;</code> but when i do it like this :</p>
  
  <pre><code>Console.WriteLine(dic.Aggregate((a,b) =&gt; (a.Key + " = " + a.Value + ", " + b.Key + " = " + b.Value)));
  </code></pre>
  
  <p>I get this error :</p>
  
  <blockquote>
    <p>Cannot convert lambda expression to delegate type.</p>
  </blockquote>
  
  <p>So it seems that i'm doing it wrong. So can anybody tell me how to use this method?</p>