StringDictionary() constructor is used to initialize a new instance of the StringDictionary class which will be empty and will have the default initial capacity. StringDictionary is a specialized collection. This class comes under the
System.Collections.Specialized namespace. It only allows string keys and string values. It suffers from performance problems. It implements a hash table with the key and the value strongly typed to be strings rather than objects.
public StringDictionary ();
Before Add Method: 0 After Add Method: 6
- C# | Add key and value into StringDictionary
- C# | Get or set the value associated with the specified key in StringDictionary
- C# | Gets or sets the value at the specified key in StringDictionary
- C# | StringDictionary Class
- How to get Synchronize access to the StringDictionary in C#
- C# | Removing all entries from the StringDictionary
- C# | Remove entry with specified key from the StringDictionary
- C# | Get a collection of keys in the StringDictionary
- C# | Get a collection of values in the StringDictionary
- C# | Get an enumerator that iterates through the stringDictionary
- C# | Get the number of key/value pairs in the StringDictionary
- C# | Check if the StringDictionary contains a specific value
- C# | Check if the StringDictionary contains a specific key
- C# | Copy StringDictionary to Array at the specified index
- C# | Check if two StringDictionary objects are equal or not
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.