Click or drag to resize

MultiValueDictionaryTKey, TValue Class

A dictionary that simplifies having multiple values for a key.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryTKey, ListTValue
    DustProductions.CoreMultiValueDictionaryTKey, TValue

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class MultiValueDictionary<TKey, TValue> : Dictionary<TKey, List<TValue>>

Type Parameters

TKey
The Type for the key
TValue
The Type for the value

The MultiValueDictionaryTKey, TValue type exposes the following members.

Constructors
  NameDescription
Public methodMultiValueDictionaryTKey, TValue
Initializes a new instance of the MultiValueDictionaryTKey, TValue class
Top
Methods
  NameDescription
Public methodAdd
Adds a value to a key if it iexists, or makes one if it does not exist.
Public methodAddNoDuplicates
Adds a value to a key if it iexists, or makes one if it does not exist. Does not allow duplicate items in the values for a key.
Top
See Also