System.Collections.Generic.Dictionary<TKey,TValue> Members

The members of System.Collections.Generic.Dictionary<TKey,TValue> are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new dictionary that is empty, has the default initial capacity, and uses the default equality comparer.
Initializes a new dictionary that contains elements copied from the specified dictionary, has sufficient capacity to accommodate the number of elements copied, and uses the default equality comparer.
Initializes a new dictionary that is empty, has the default initial capacity, and uses the specified equality comparer.
Initializes a new dictionary that is empty, has the specified initial capacity, and uses the default equality comparer.
Initializes a new dictionary that contains elements copied from the specified dictionary, has sufficient capacity to accommodate the number of elements copied, and uses the specified equality comparer.
Initializes a new dictionary that is empty, has the specified initial capacity, and uses the specified equality comparer.

Protected Constructors

Public Properties

[read-only]
ComparerIEqualityComparer<TKey>. Documentation for this section has not yet been entered.
[read-only]
Countint. Gets the number of key/value pairs contained in the dictionary.
default property
Item(TKey)TValue. Gets or sets the value associated with the specified key.
[read-only]
KeysDictionary<TKey, TValue>.KeyCollection. Gets a collection that contains the keys in the dictionary.
[read-only]
ValuesDictionary<TKey, TValue>.ValueCollection. Gets a collection that contains the values in the dictionary.

Public Methods

Add(TKey, TValue)
Adds an element with the specified key and value to the dictionary.
Clear()
Removes all elements from the dictionary.
ContainsKey(TKey) : bool
Determines whether the dictionary contains an element with a specific key.
ContainsValue(TValue) : bool
Determines whether the dictionary contains an element with a specific value.
GetEnumerator() : Dictionary<TKey, TValue>.Enumerator
Returns an enumerator that can be used to iterate over the dictionary.
GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Documentation for this section has not yet been entered.
OnDeserialization(object)
Documentation for this section has not yet been entered.
Remove(TKey) : bool
Removes the element with the specified key from the dictionary.
TryGetValue(TKey, out TValue) : bool
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

ICollection<KeyValuePair<TKey, TValue>>.AddDocumentation for this section has not yet been entered.
IDictionary.AddThis method is implemented to support the IDictionary interface.
ICollection<KeyValuePair<TKey, TValue>>.ContainsDocumentation for this section has not yet been entered.
IDictionary.ContainsThis method is implemented to support the IDictionary interface.
ICollection.CopyToThis method is implemented to support the ICollection interface.
ICollection<KeyValuePair<TKey, TValue>>.CopyToThis method is implemented to support the System.Collections.Generics.ICollection<KeyValuePair<TKey, TValue>> interface.
IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumeratorThis method is implemented to support the System.Collections.Generics.IEnumerable<KeyValuePair<TKey, TValue>> interface.
IDictionary.GetEnumeratorThis method is implemented to support the IDictionary interface.
IEnumerable.GetEnumeratorThis method is implemented to support the IEnumerable interface.
[read-only]
IDictionary.IsFixedSizebool. This read-only property is implemented to support the IDictionary interface.
[read-only]
ICollection<KeyValuePair<TKey, TValue>>.IsReadOnlybool. This read-only property is implemented to support the System.Collections.Generics.ICollection<KeyValuePair<TKey, TValue>> interface.
[read-only]
IDictionary.IsReadOnlybool. This read-only property is implemented to support the IDictionary interface.
[read-only]
ICollection.IsSynchronizedbool. This read-only property is implemented to support the ICollection interface.
IDictionary.Itemobject. This read-only property is implemented to support the IDictionary interface.
[read-only]
IDictionary<TKey, TValue>.KeysICollection<TKey>. This read-only property is implemented to support the IDictionary<TKey, TValue> interface.
[read-only]
IReadOnlyDictionary<TKey, TValue>.KeysIEnumerable<TKey>. Documentation for this section has not yet been entered.
[read-only]
IDictionary.KeysICollection. This read-only property is implemented to support the IDictionary interface.
ICollection<KeyValuePair<TKey, TValue>>.RemoveDocumentation for this section has not yet been entered.
IDictionary.RemoveThis method is implemented to support the IDictionary interface.
[read-only]
ICollection.SyncRootobject. This read-only property is implemented to support the ICollection interface.
[read-only]
IDictionary<TKey, TValue>.ValuesICollection<TValue>. This read-only property is implemented to support the IDictionary<TKey, TValue> interface.
[read-only]
IReadOnlyDictionary<TKey, TValue>.ValuesIEnumerable<TValue>. Documentation for this section has not yet been entered.
[read-only]
IDictionary.ValuesICollection. This read-only property is implemented to support the IDictionary interface.