DictionaryTKey, TValue Class |
Namespace: System.Collections.Generic
[SerializableAttribute] public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable, ISerializable, IDeserializationCallback
The DictionaryTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add | Adds the specified key and value to the dictionary. |
![]() | Clear | Removes all keys and values from the DictionaryTKey, TValue. |
![]() | ContainsKey | Determines whether the DictionaryTKey, TValue contains the specified key. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the DictionaryTKey, TValue. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the value with the specified key from the DictionaryTKey, TValue. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetValue | Gets the value associated with the specified key. |
Name | Description | |
---|---|---|
![]() | Count | Gets the number of key/value pairs contained in the DictionaryTKey, TValue. |
![]() | Keys | Gets a collection containing the keys in the DictionaryTKey, TValue. |
![]() | Values | Gets a collection containing the values in the DictionaryTKey, TValue. |