Share via


ListDictionary<TKey, TValue> Members

Include Protected Members
Include Inherited Members

The ListDictionary<TKey, TValue> type exposes the following members.

Constructors

  Name Description
Public method ListDictionary<TKey, TValue>

Methods

  Name Description
Public method Add(TKey)
If a list does not already exist, it will be created automatically.
Public method Add(TKey, TValue)
Adds a value to a list with the given key. If a list does not already exist, it will be created automatically.
Public method Clear
Removes all entries in the dictionary.
Public method ContainsKey
Determines whether the dictionary contains the given key.
Public method ContainsValue
Determines whether the dictionary contains the specified value.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method FindAllValues
Retrieves all the elements that match the condition defined by the specified predicate.
Public method FindAllValuesByKey
Retrieves the all the elements from the list which have a key that matches the condition defined by the specified predicate.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Remove(TKey)
Removes a list by key.
Public method Remove(TValue)
Removes a value from all lists where it may be found.
Public method Remove(TKey, TValue)
Removes a value from the list with the given key.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property Count
Gets the number of lists in the dictionary.
Public property Item
Gets or sets the list associated with the given key. The access always succeeds, eventually returning an empty list.
Public property Keys
Gets the list of keys in the dictionary.
Public property Values
Gets a shallow copy of all values in all lists.

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, IList<TValue>>>.Add
Explicit interface implemetationPrivate method IDictionary<TKey, IList<TValue>>.Add
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, IList<TValue>>>.Contains
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, IList<TValue>>>.CopyTo
Explicit interface implemetationPrivate method IEnumerable<KeyValuePair<TKey, IList<TValue>>>.GetEnumerator
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator
See GetEnumerator() for more information.
Explicit interface implemetationPrivate property ICollection<KeyValuePair<TKey, IList<TValue>>>.IsReadOnly
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, IList<TValue>>>.Remove
Explicit interface implemetationPrivate method IDictionary<TKey, IList<TValue>>.TryGetValue
Explicit interface implemetationPrivate property IDictionary<TKey, IList<TValue>>.Values

See Also

ListDictionary<TKey, TValue> Class

Microsoft.Practices.Prism Namespace