title: How to convert concurrentbag to list?
body: <p>I have few task which I can do in parallel. As list is not thread safe i am using <code>concurrentbag</code>. Once all the task are completed I want to convert the <code>concurrentbag</code> to list.  </p>
  
  <p>I have <a href="https://msdn.microsoft.com/en-us/library/dd381779(v=vs.110).aspx" rel="noreferrer">searched in MSDN</a> but couldn't find any API which can convert concurrentbag to list in c#. How can I do it?</p>
  
  <p><strong>Note:</strong> i have to convert to list, It is necessary.</p>
  
  <p>I have other option to apply lock on list but i wanted to use in build <code>concurrentbag</code> which is thread safe.</p>