| | Collection Classes - slide 26 : 36 |
Overview of the class Dictionary<K,V>
- Members of class Dictionary<K,V>
- Constructors
- Dictionary(), Dictionary(IDictionary<K,V>), Dictionary(IEqualityComparer<K>), Dictionary(int), and more
- Value addition
- Add(K, V),
this[K] = V if K is not already in the dictionary
- Value mutation
- this[K] = V if K is already in the dictionary
- Element removal
- Value access
- this[K], Values, TryGetValue(K, out V)
- Key access
- Boolean queries
- ContainsKey(K), ContainsValue(V)
- Others