ConcurrentDictionary(TKey, TValue) Constructor (IEnumerable(KeyValuePair(TKey, TValue)), IEqualityComparer(TKey))

ConcurrentDictionary(Of TKey, TValue) Constructor (IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEqualityComparer(Of TKey))

.NET Framework (current version)

Initializes a new instance of the ConcurrentDictionary(Of 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(Of T).

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

Public Sub New (
	collection As IEnumerable(Of KeyValuePair(Of TKey, TValue)),
	comparer As IEqualityComparer(Of TKey)

Exception Condition

collection or comparer is null.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
© 2016 Microsoft