Namespace System.Collections.Generic
Classes
MultiValueDictionary<TKey, TValue>
A MultiValueDictionary can be viewed as a IDictionary that allows multiple values for any given unique key. While the MultiValueDictionary API is mostly the same as that of a regular IDictionary, there is a distinction in that getting the value for a key returns a IReadOnlyCollection<T> of values rather than a single value associated with that key. Additionally, there is functionality to allow adding or removing more than a single value at once.
The MultiValueDictionary can also be viewed as a IReadOnlyDictionary<TKey,IReadOnlyCollection<TValue>t> where the IReadOnlyCollection<T> is abstracted from the view of the programmer.
For a read-only MultiValueDictionary, see ILookup<TKey, TElement>.