Export (0) Print
Expand All

ConcurrentDictionary<TKey, TValue> Constructor

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ConcurrentDictionary<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.
Public method ConcurrentDictionary<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.
Public method ConcurrentDictionary<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>.
Public method ConcurrentDictionary<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>.
Public method ConcurrentDictionary<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.
Public method ConcurrentDictionary<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>.
Public method ConcurrentDictionary<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>.
Top
Show:
© 2014 Microsoft