With the new ConcurrentBag in .NET 4, how do you remove a certain, specific object from it when only TryTake() and TryPeek() are
ConcurrentBag
TryTake()
TryPeek()
public static ConcurrentBag RemoveItemFromConcurrentBag(ConcurrentBag Array, String Item) { var Temp=new ConcurrentBag(); Parallel.ForEach(Array, Line => { if (Line != Item) Temp.Add(Line); }); return Temp; }