MultiValueDictionaryTKey, TValue Class |
Namespace: SD.Tools.Algorithmia.GeneralDataStructures
[SerializableAttribute] public class MultiValueDictionary<TKey, TValue> : Dictionary<TKey, HashSet<TValue>>
The MultiValueDictionaryTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
MultiValueDictionaryTKey, TValue |
Initializes a new instance of the MultiValueDictionaryTKey, TValue class.
| |
MultiValueDictionaryTKey, TValue(IEqualityComparerTValue) |
Initializes a new instance of the MultiValueDictionaryTKey, TValue class.
| |
MultiValueDictionaryTKey, TValue(SerializationInfo, StreamingContext) |
Initializes a new instance of the MultiValueDictionaryTKey, TValue class.
|
Name | Description | |
---|---|---|
Comparer | Gets the IEqualityComparerT that is used to determine equality of keys for the dictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
Count | Gets the number of key/value pairs contained in the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
Item | Gets or sets the value associated with the specified key. (Inherited from DictionaryTKey, HashSetTValue.) | |
Keys | Gets a collection containing the keys in the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
Values | Gets a collection containing the values in the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) |
Name | Description | |
---|---|---|
Add(TKey, TValue) | Adds the specified key and value to the dictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
Add(TKey, TValue) |
Adds the specified value under the specified key
| |
AddRange |
Adds the range of values under the key specified.
| |
Clear | Removes all keys and values from the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
Clone |
Clones this instance using shallow copy
| |
ContainsKey | Determines whether the DictionaryTKey, TValue contains the specified key. (Inherited from DictionaryTKey, HashSetTValue.) | |
ContainsValue(TValue) | Determines whether the DictionaryTKey, TValue contains a specific value. (Inherited from DictionaryTKey, HashSetTValue.) | |
ContainsValue(TKey, TValue) |
Determines whether this dictionary contains the specified value for the specified key
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetObjectData |
Gets the object data.
(Overrides DictionaryTKey, TValueGetObjectData(SerializationInfo, StreamingContext).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValues |
Gets the values for the key specified. This method is useful if you want to avoid an exception for key value retrieval and you can't use TryGetValue
(e.g. in lambdas)
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge |
Merges the specified multivaluedictionary into this instance.
| |
OnDeserialization | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from DictionaryTKey, HashSetTValue.) | |
Remove(TKey) | Removes the value with the specified key from the DictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
Remove(TKey, TValue) |
Removes the specified value for the specified key. It will leave the key in the dictionary.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue | Gets the value associated with the specified key. (Inherited from DictionaryTKey, HashSetTValue.) |
Name | Description | |
---|---|---|
ICollectionKeyValuePairTKey, TValueAdd | Adds the specified value to the ICollectionT with the specified key. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryAdd | Adds the specified key and value to the dictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionKeyValuePairTKey, TValueContains | Determines whether the ICollectionT contains a specific key and value. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryContains | Determines whether the IDictionary contains an element with the specified key. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionKeyValuePairTKey, TValueCopyTo | Copies the elements of the ICollectionT to an array of type KeyValuePairTKey, TValue, starting at the specified array index. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionCopyTo | Copies the elements of the ICollectionT to an array, starting at the specified array index. (Inherited from DictionaryTKey, HashSetTValue.) | |
IEnumerableKeyValuePairTKey, TValueGetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from DictionaryTKey, HashSetTValue.) | |
IEnumerableGetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryGetEnumerator | Returns an IDictionaryEnumerator for the IDictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryIsFixedSize | Gets a value indicating whether the IDictionary has a fixed size. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionKeyValuePairTKey, TValueIsReadOnly | Gets a value indicating whether the dictionary is read-only. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryIsReadOnly | Gets a value indicating whether the IDictionary is read-only. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionIsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryItem | Gets or sets the value with the specified key. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryTKey, TValueKeys | Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
IReadOnlyDictionaryTKey, TValueKeys | Gets a collection containing the keys of the IReadOnlyDictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryKeys | Gets an ICollection containing the keys of the IDictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionKeyValuePairTKey, TValueRemove | Removes a key and value from the dictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryRemove | Removes the element with the specified key from the IDictionary. (Inherited from DictionaryTKey, HashSetTValue.) | |
ICollectionSyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryTKey, TValueValues | Gets an ICollectionT containing the values in the IDictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
IReadOnlyDictionaryTKey, TValueValues | Gets a collection containing the values of the IReadOnlyDictionaryTKey, TValue. (Inherited from DictionaryTKey, HashSetTValue.) | |
IDictionaryValues | Gets an ICollection containing the values in the IDictionary. (Inherited from DictionaryTKey, HashSetTValue.) |