Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

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

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

Methods


  Name Description
Public method Add

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

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

Public method Clear
Removes all keys and values from the dictionary.
Public method Clone
Makes a shallow clone of this dictionary; i.e., if keys or values of the dictionary are reference types, then they are not cloned. If TKey or TValue is a value type, then each element is copied as if by simple assignment.
Public method CloneContents
Makes a deep clone of this dictionary. A new dictionary is created with a clone of each entry of this dictionary, by calling ICloneable.Clone on each element. If TKey or TValue is a value type, then each element is copied as if by simple assignment.
Public method Contains
Checks to see if value is associated with key in the dictionary.
Public method ContainsKey
Checks to see if the key is present in the dictionary and has at least one value associated with it.
Public method Remove(TKey, TValue)
Removes a given value from the values associated with a key. If the last value is removed from a key, the key is removed also.
Public method Remove(TKey)
Removes a key and all associated values from the dictionary. If the key is not present in the dictionary, it is unchanged and false is returned.