System.Collections.Concurrent Namespace

.NET Framework (current version)
 

The System.Collections.Concurrent namespace provides several thread-safe collection classes that should be used in place of the corresponding types in the System.Collections and System.Collections.Generic namespaces whenever multiple threads are accessing the collection concurrently.

However, members accessed through one of the interfaces the current collections implement, including extension methods, are not guaranteed to be thread safe and may need to be synchronized by the caller.

ClassDescription
System_CAPS_pubclassBlockingCollection<T>

Provides blocking and bounding capabilities for thread-safe collections that implement IProducerConsumerCollection<T>.

System_CAPS_pubclassConcurrentBag<T>

Represents a thread-safe, unordered collection of objects.

System_CAPS_pubclassConcurrentDictionary<TKey, TValue>

Represents a thread-safe collection of key/value pairs that can be accessed by multiple threads concurrently.

System_CAPS_pubclassConcurrentQueue<T>

Represents a thread-safe first in-first out (FIFO) collection.

System_CAPS_pubclassConcurrentStack<T>

Represents a thread-safe last in-first out (LIFO) collection.

System_CAPS_pubclassOrderablePartitioner<TSource>

Represents a particular manner of splitting an orderable data source into multiple partitions.

System_CAPS_pubclassPartitioner

Provides common partitioning strategies for arrays, lists, and enumerables.

System_CAPS_pubclassPartitioner<TSource>

Represents a particular manner of splitting a data source into multiple partitions.

InterfaceDescription
System_CAPS_pubinterfaceIProducerConsumerCollection<T>

Defines methods to manipulate thread-safe collections intended for producer/consumer usage. This interface provides a unified representation for producer/consumer collections so that higher level abstractions such as System.Collections.Concurrent.BlockingCollection<T> can use the collection as the underlying storage mechanism.

EnumerationDescription
System_CAPS_pubenumEnumerablePartitionerOptions

Specifies options to control the buffering behavior of a partitioner

Return to top
Show: