Export (0) Print
Expand All

ConcurrentDictionary<TKey, TValue> Constructor (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>.

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

public ConcurrentDictionary(
	IEqualityComparer<TKey> comparer
)

Parameters

comparer
Type: System.Collections.Generic.IEqualityComparer<TKey>

The equality comparison implementation to use when comparing keys.

ExceptionCondition
ArgumentNullException

comparer is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft