Dictionary Members
Represents a collection of keys and values.
The following tables list the members exposed by the Dictionary generic type.
(see also
Protected Constructors
)
Top
| Name | Description | |
|---|---|---|
| Dictionary | Overloaded. Initializes a new instance of the Dictionary class. |
| Name | Description | |
|---|---|---|
| Comparer | Gets the IEqualityComparer that is used to determine equality of keys for the dictionary. |
| Count | Gets the number of key/value pairs contained in the Dictionary. |
| Item | Gets or sets the value associated with the specified key. |
| Keys | Gets a collection containing the keys in the Dictionary. |
| Values | Gets a collection containing the values in the Dictionary. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Add | Adds the specified key and value to the dictionary. |
| Clear | Removes all keys and values from the Dictionary. |
| ContainsKey | Determines whether the Dictionary contains the specified key. |
| ContainsValue | Determines whether the Dictionary contains a specific value. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the Dictionary. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetObjectData | Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the Dictionary instance. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| OnDeserialization | Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Remove | Removes the value with the specified key from the Dictionary. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| TryGetValue | Gets the value associated with the specified key. |
| Name | Description | |
|---|---|---|
| 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) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add | Adds the specified value to the ICollection with the specified key. |
| System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains | Determines whether the ICollection contains a specific key and value. |
| System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo | Copies the elements of the ICollection to an array of type KeyValuePair, starting at the specified array index. |
| System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove | Removes a key and value from the dictionary. |
| System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator | Returns an enumerator that iterates through the collection. |
| System.Collections.ICollection.CopyTo | Copies the elements of the ICollection to an array, starting at the specified array index. |
| System.Collections.IDictionary.Add | Adds the specified key and value to the dictionary. |
| System.Collections.IDictionary.Contains | Determines whether the IDictionary contains an element with the specified key. |
| System.Collections.IDictionary.GetEnumerator | Returns an IDictionaryEnumerator for the IDictionary. |
| System.Collections.IDictionary.Remove | Removes the element with the specified key from the IDictionary. |
| System.Collections.IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. |
| System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IsReadOnly | Gets a value indicating whether the dictionary is read-only. |
| System.Collections.Generic.IDictionary<TKey,TValue>.Keys | Gets an ICollection containing the keys of the IDictionary. |
| System.Collections.Generic.IDictionary<TKey,TValue>.Values | Gets an ICollection containing the values in the IDictionary. |
| System.Collections.ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
| System.Collections.ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
| System.Collections.IDictionary.IsFixedSize | Gets a value indicating whether the IDictionary has a fixed size. |
| System.Collections.IDictionary.IsReadOnly | Gets a value indicating whether the IDictionary is read-only. |
| System.Collections.IDictionary.Item | Gets or sets the value with the specified key. |
| System.Collections.IDictionary.Keys | Gets an ICollection containing the keys of the IDictionary. |
| System.Collections.IDictionary.Values | Gets an ICollection containing the values in the IDictionary. |