Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

MultiDictionaryBase<(Of <(<'TKey, TValue>)>)> Methods

The MultiDictionaryBase<(Of <(<'TKey, TValue>)>)> type exposes the following members.

Methods


  Name Description
Public method Add(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>))
Adds a key-value pair to the collection. The value part of the pair must be a collection of values to associate with the key. If values are already associated with the given key, the new values are added to the ones associated with that key.
Public method Add(TKey, TValue)
Adds a new key-value pair to the dictionary. This method must be overridden in the derived class.
Public method AddMany

Adds new values to be associated with a key. If duplicate values are permitted, this method always adds new key-value pairs to the dictionary.

If duplicate values are not permitted, and key already has a value equal to one of values associated with it, then that value is replaced, and the number of values associate with key is unchanged.

Public method Clear
Clears the dictionary. This method must be overridden in the derived class.
Public method Contains(TKey, TValue)
Determines if this dictionary contains a key-value pair equal to key and value. The dictionary is not changed. This method must be overridden in the derived class.
Public method Contains(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>))
Determines if this dictionary contains the given key and all of the values associated with that key..
Public method ContainsKey
Determines whether a given key is found in the dictionary.
Public method GetEnumerator
Enumerate all the keys in the dictionary, and for each key, the collection of values for that key.
Public method Remove(TKey)
Removes a key from the dictionary. This method must be overridden in the derived class.
Public method Remove(TKey, TValue)
Removes a key-value pair from the dictionary. This method must be overridden in the derived class.
Public method Remove(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>))
Removes a set of values from a given key. If all values associated with a key are removed, then the key is removed also.
Public method RemoveMany(TKey, IEnumerable<(Of <<'(TValue>)>>))
Removes a collection of values from the values associated with a key. If the last value is removed from a key, the key is removed also.
Public method RemoveMany(IEnumerable<(Of <<'(TKey>)>>))
Remove all of the keys (and any associated values) in a collection of keys. If a key is not present in the dictionary, nothing happens.
Public method Replace
Replaces all values associated with key with the single value value.
Public method ReplaceMany
Replaces all values associated with key with a new collection of values. If the collection does not permit duplicate values, and values has duplicate items, then only the last of duplicates is added.
Public method ToString
Shows the string representation of the dictionary. The string representation contains a list of the mappings in the dictionary.