title: Group string values
body: <p>I have this code</p>
  <pre><code>var myBuilder = new StringBuilder();
  
  foreach (var item in myList)
  {
    myBuilder.Append(item.Number).Append(&quot; - &quot;).Append(item.SecondNumber).Append(&quot;, &quot;);
  }
  
  var text = myBuilder;
  </code></pre>
  <p>and using that I'm getting this text</p>
  <blockquote>
  <p>AAA08 - BB08, AAA09 - BB09, AAA09 - BB10,</p>
  </blockquote>
  <p><em><strong>myList</strong></em> returns this:</p>
  <blockquote>
  <p>{ Number = &quot;AAA08&quot;, SecondNumber = &quot;BB08&quot; }</p>
  <p>{ Number = &quot;AAA09&quot;, SecondNumber = &quot;BB09&quot; }</p>
  <p>{ Number = &quot;AAA09&quot;, SecondNumber = &quot;BB10&quot; }</p>
  </blockquote>
  <p>How can I concatenate it to string to display this:</p>
  <blockquote>
  <p>AAA08 - BB08; AAA09 - BB09, BB10</p>
  </blockquote>
  <p>I can do replace <code>,</code> to <code>;</code> but can't get how to group these <code>Number</code>to display only one and each <code>SecondNumber</code> right to him</p>