See Also: ConcurrentBag<T> Members
- Documentation for this section has not yet been entered.
Bags are useful for storing objects when ordering doesn't matter, and unlike sets, bags support duplicates. System.Collections.Concurrent.ConcurrentBag`1 is a thread-safe bag implementation, optimized for scenarios where the same thread will be both producing and consuming data stored in the bag.
System.Collections.Concurrent.ConcurrentBag`1 accepts null as a valid value for reference types.
For more information, see the entry tp://blogs.msdn.com/b/pfxteam/archive/2010/01/26/9953725.aspx in the Parallel Programming with .NET blog.