Initializes a new instance of the Dictionary<(Of <(<'TKey, TValue>)>)> class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer<(Of <(<'T>)>)>.

Namespace: System.Collections.ObjectModel
Assembly: Elysium (in Elysium.dll) Version: 2.0.976.4 (2.0.976.4)

Syntax

C#
public ObservableDictionary(
	int capacity,
	IEqualityComparer<TKey> comparer
)
Visual Basic
Public Sub New ( 
	capacity As Integer,
	comparer As IEqualityComparer(Of TKey)
)

Parameters

capacity
Type: System..::..Int32
The initial number of elements that the Dictionary<(Of <(<'TKey, TValue>)>)> can contain.
comparer
Type: System.Collections.Generic..::..IEqualityComparer<(Of <(<'TKey>)>)>
The IEqualityComparer<(Of <(<'T>)>)> implementation to use when comparing keys, or null to use the default EqualityComparer<(Of <(<'T>)>)> for the type of the key.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptioncapacity is less than 0.

See Also