A multi-map allows a list of values to be associated with a single key.

Namespace:  Gallio.Common.Collections
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public interface IMultiMap<TKey, TValue> : IDictionary<TKey, IList<TValue>>, 
	ICollection<KeyValuePair<TKey, IList<TValue>>>, IEnumerable<KeyValuePair<TKey, IList<TValue>>>, 
	IEnumerable
Visual Basic (Declaration)
Public Interface IMultiMap(Of TKey, TValue) _
	Implements IDictionary(Of TKey, IList(Of TValue)),  _
	ICollection(Of KeyValuePair(Of TKey, IList(Of TValue))),  _
	IEnumerable(Of KeyValuePair(Of TKey, IList(Of TValue))),  _
	IEnumerable

Type Parameters

TKey
TValue

Remarks

The value collections provided by the multi-map are always read-only. They can only be modified by calling the appropriate methods of the multi-map to add or remove items. This behavior helps multi-map implementations better maintain their invariants.

See Also