Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

MultiDictionary<(Of <(<'TKey, TValue>)>)> Constructor (Boolean, IEqualityComparer<(Of <(<'TKey>)>)>, IEqualityComparer<(Of <(<'TValue>)>)>)

Create a new MultiDictionary. If duplicate values are allowed, multiple copies of the same value can be associated with the same key. For example, the key "foo" could have "a", "a", and "b" associated with it. If duplicate values are not allowed, only one copies of a given value can be associated with the same key, although different keys can have the same value. For example, the key "foo" could have "a" and "b" associated with it, which key "bar" has values "b" and "c" associated with it.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public MultiDictionary(
	bool allowDuplicateValues,
	IEqualityComparer<TKey> keyEqualityComparer,
	IEqualityComparer<TValue> valueEqualityComparer
)
Public Sub New ( _
	allowDuplicateValues As Boolean, _
	keyEqualityComparer As IEqualityComparer(Of TKey), _
	valueEqualityComparer As IEqualityComparer(Of TValue) _
)
public:
MultiDictionary(
	bool^ allowDuplicateValues, 
	IEqualityComparer<TKey>^ keyEqualityComparer, 
	IEqualityComparer<TValue>^ valueEqualityComparer
)

Parameters

allowDuplicateValues
Type: Boolean
Can the same value be associated with a key multiple times?
keyEqualityComparer
Type: IEqualityComparer<(Of <(<'TKey>)>)>
An IEqualityComparer<TKey> instance that will be used to compare keys.
valueEqualityComparer
Type: IEqualityComparer<(Of <(<'TValue>)>)>
An IEqualityComparer<TValue> instance that will be used to compare values.