title: ConcurrentBag - Add Multiple Items?
body: <p>Is there a way to add multiple items to ConcurrentBag all at once, instead of one at a time? I don't see an AddRange() method on ConcurrentBag, but there is a Concat(). However, that's not working for me:</p>
  
  <pre><code>ConcurrentBag&lt;T&gt; objectList = new ConcurrentBag&lt;T&gt;();
  
  timeChunks.ForEach(timeChunk =&gt;
  {
      List&lt;T&gt; newList = Foo.SomeMethod&lt;T&gt;(x =&gt; x.SomeReadTime &gt; timeChunk.StartTime);
      objectList.Concat&lt;T&gt;(newList);
  });
  </code></pre>
  
  <p>This code used to be in a Parallel.ForEach(), but I changed it to the above so I could troubleshoot it. The variable newList indeed has objects, but after the objectList.Concat&lt;> line, objectList always has 0 objects in it. Does Concat&lt;> not work that way? Do I need to add items to ConcurrentBag one at a time, with the Add() method?</p>