title: Is StringBuilder really faster than Aggreggate?
body: <pre><code>        string c = tmpArr[0].Aggregate(string.Empty, (current, m) =&gt; current + (m.Name + " "));
  
          StringBuilder sb = new StringBuilder();
  
          foreach (Mobile m in tmpArr[0])
              sb.Append(m.Name + " ");
  
          sb.ToString();
  </code></pre>
  
  <p>which of those two is faster? aggregate certainly is cleaner, but is it fast or is it the same as doing</p>
  
  <pre><code>foreach(Mobile m in tmpArr[0])
      c += m.Name + " ";
  </code></pre>
  
  <p>what I really would like to do is something like <code>string.Join(",",tmpArr[0])</code>, but I don't want it to concat their ToString values, just their Names, how would I do that best?</p>
  
  <p>my problem with not using <code>string.Join</code> is I would actually have to do something like this:</p>
  
  <pre><code>        string separator = "";
          StringBuilder sb = new StringBuilder();
  
          foreach (Mobile m in tmpArr[0])
          {
              separator = ", ";
              sb.Append(separator + m.Name);
          }
  </code></pre>