ConcurrentDictionary<TKey, TValue> Constructor

.NET Framework (current version)
 

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>()

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that is empty, has the default concurrency level, has the default initial capacity, and uses the default comparer for the key type.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>)

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that contains elements copied from the specified IEnumerable<T>, has the default concurrency level, has the default initial capacity, and uses the default comparer for the key type.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<TKey>)

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that contains elements copied from the specified IEnumerable has the default concurrency level, has the default initial capacity, and uses the specified IEqualityComparer<T>.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(IEqualityComparer<TKey>)

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that is empty, has the default concurrency level and capacity, and uses the specified System.Collections.Generic.IEqualityComparer<T>.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(Int32, IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<TKey>)

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that contains elements copied from the specified IEnumerable, and uses the specified System.Collections.Generic.IEqualityComparer<T>.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(Int32, Int32)

Initializes a new instance of the ConcurrentDictionary<TKey, TValue> class that is empty, has the specified concurrency level and capacity, and uses the default comparer for the key type.

System_CAPS_pubmethodConcurrentDictionary<TKey, TValue>(Int32, Int32, IEqualityComparer<TKey>)

Initializes a new instance of the System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue> class that is empty, has the specified concurrency level, has the specified initial capacity, and uses the specified System.Collections.Generic.IEqualityComparer<T>.

Return to top
Show: