MultiValueDictionary<TKey, TValue> Class |
Namespace: SD.Tools.Algorithmia.GeneralDataStructures
[SerializableAttribute] public class MultiValueDictionary<TKey, TValue> : Dictionary<TKey, HashSet<TValue>>
The MultiValueDictionary<TKey, TValue> type exposes the following members.
Name | Description | |
---|---|---|
![]() | MultiValueDictionary<TKey, TValue>() |
Initializes a new instance of the MultiValueDictionary<TKey, TValue> class.
|
![]() | MultiValueDictionary<TKey, TValue>(IEqualityComparer<TValue>) |
Initializes a new instance of the MultiValueDictionary<TKey, TValue> class.
|
![]() | MultiValueDictionary<TKey, TValue>(SerializationInfo, StreamingContext) |
Initializes a new instance of the MultiValueDictionary<TKey, TValue> class.
|
Name | Description | |
---|---|---|
![]() | Comparer | Gets the IEqualityComparer<T> that is used to determine equality of keys for the dictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | Count | Gets the number of key/value pairs contained in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | Item | Gets or sets the value associated with the specified key. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | Keys | Gets a collection containing the keys in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | Values | Gets a collection containing the values in the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
Name | Description | |
---|---|---|
![]() | Add(TKey, TValue) | Adds the specified key and value to the dictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | 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 Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | Clone |
Clones this instance using shallow copy
|
![]() | ContainsKey | Determines whether the Dictionary<TKey, TValue> contains the specified key. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | ContainsValue(TValue) | Determines whether the Dictionary<TKey, TValue> contains a specific value. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | 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 Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetObjectData |
Gets the object data.
(Overrides Dictionary<TKey, TValue>.GetObjectData(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 Dictionary<TKey, HashSet<TValue>>.) |
![]() | Remove(TKey) | Removes the value with the specified key from the Dictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() | 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 Dictionary<TKey, HashSet<TValue>>.) |
Name | Description | |
---|---|---|
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Add | Adds the specified value to the ICollection<T> with the specified key. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Add | Adds the specified key and value to the dictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Contains | Determines whether the ICollection<T> contains a specific key and value. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Contains | Determines whether the IDictionary contains an element with the specified key. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.CopyTo | Copies the elements of the ICollection<T> to an array of type KeyValuePair<TKey, TValue>, starting at the specified array index. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection.CopyTo | Copies the elements of the ICollection<T> to an array, starting at the specified array index. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.GetEnumerator | Returns an IDictionaryEnumerator for the IDictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.IsFixedSize | Gets a value indicating whether the IDictionary has a fixed size. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly | Gets a value indicating whether the dictionary is read-only. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.IsReadOnly | Gets a value indicating whether the IDictionary is read-only. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Item | Gets or sets the value with the specified key. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary<TKey, TValue>.Keys | Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Keys | Gets a collection containing the keys of the IReadOnlyDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Keys | Gets an ICollection containing the keys of the IDictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Remove | Removes a key and value from the dictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Remove | Removes the element with the specified key from the IDictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary<TKey, TValue>.Values | Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Values | Gets a collection containing the values of the IReadOnlyDictionary<TKey, TValue>. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |
![]() ![]() | IDictionary.Values | Gets an ICollection containing the values in the IDictionary. (Inherited from Dictionary<TKey, HashSet<TValue>>.) |