Click or drag to resize

MultiValueHashtableTKey, TValue Class

Specialized hashtable which can store multiple values for a given key. All values are stored in an UniqueValueList as value. When the value is requested, the UniqueValueList is returned, not the actual value.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryTKey, UniqueValueListTValue
    SD.LLBLGen.Pro.ORMSupportClassesMultiValueHashtableTKey, TValue

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntax
[SerializableAttribute]
public class MultiValueHashtable<TKey, TValue> : Dictionary<TKey, UniqueValueList<TValue>>

Type Parameters

TKey
TValue

The MultiValueHashtableTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyComparer
Gets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public propertyCount
Gets the number of key/value pairs contained in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public propertyItem
Gets / sets a value for the given key. Hides original indexer
Public propertyKeys
Gets a collection containing the keys in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public propertyValues
Gets a collection containing the values in the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Top
Methods
  NameDescription
Public methodAdd(TKey, TValue)
Adds the specified key and value to the dictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodAdd(TKey, ICollectionTValue)
Adds the objects as values for the specified key.
Public methodAdd(TKey, TValue)
Adds an element with the specified key and value to the set.
Public methodClear
Removes all keys and values from the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodContains
Determines whether the multivaluehashtable contains the key, and if so, if the list of values stored under the key contains the value specified.
Public methodContainsKey
Determines whether the DictionaryTKey, TValue contains the specified key.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodContainsValue
Determines whether the DictionaryTKey, TValue contains a specific value.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
Implements the ISerializable interface and returns the data needed to serialize the DictionaryTKey, TValue instance.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnDeserialization
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodRemove
Removes the value with the specified key from the DictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueAdd
Adds the specified value to the ICollectionT with the specified key.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIDictionaryAdd
Adds the specified key and value to the dictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueContains
Determines whether the ICollectionT contains a specific key and value.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIDictionaryContains
Determines whether the IDictionary contains an element with the specified key.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueCopyTo
Copies the elements of the ICollectionT to an array of type KeyValuePairTKey, TValue, starting at the specified array index.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollectionT to an array, starting at the specified array index.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIEnumerableKeyValuePairTKey, TValueGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIDictionaryGetEnumerator
Returns an IDictionaryEnumerator for the IDictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryIsFixedSize
Gets a value indicating whether the IDictionary has a fixed size.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyICollectionKeyValuePairTKey, TValueIsReadOnly
Gets a value indicating whether the dictionary is read-only.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryIsReadOnly
Gets a value indicating whether the IDictionary is read-only.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryItem
Gets or sets the value with the specified key.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryTKey, TValueKeys
Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIReadOnlyDictionaryTKey, TValueKeys
Gets a collection containing the keys of the IReadOnlyDictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryKeys
Gets an ICollection containing the keys of the IDictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueRemove
Removes a key and value from the dictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate methodIDictionaryRemove
Removes the element with the specified key from the IDictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryTKey, TValueValues
Gets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIReadOnlyDictionaryTKey, TValueValues
Gets a collection containing the values of the IReadOnlyDictionaryTKey, TValue.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Explicit interface implementationPrivate propertyIDictionaryValues
Gets an ICollection containing the values in the IDictionary.
(Inherited from DictionaryTKey, UniqueValueListTValue.)
Top
Remarks
Legacy, use MultiValueDictionary instead
See Also