<PackageReference Include="System.Collections.Specialized" Version="4.0.1-beta-23409" />

System.Collections.Specialized.StringDictionary

public class StringDictionary : IEnumerable
Implements a hash table with the key and the value strongly typed to be strings rather than objects.
public virtual int Count { get; }

Gets the number of key/value pairs in the StringDictionary.

public virtual bool IsSynchronized { get; }

Gets a value indicating whether access to the StringDictionary is synchronized (thread safe).

public virtual string this[string key] { get; set; }

Gets or sets the value associated with the specified key.

public virtual ICollection Keys { get; }

Gets a collection of keys in the StringDictionary.

public virtual object SyncRoot { get; }

Gets an object that can be used to synchronize access to the StringDictionary.

public virtual ICollection Values { get; }

Gets a collection of values in the StringDictionary.

Initializes a new instance of the StringDictionary class.

public virtual void Add(string key, string value)

Adds an entry with the specified key and value into the StringDictionary.

public virtual void Clear()

Removes all entries from the StringDictionary.

public virtual bool ContainsKey(string key)

Determines if the StringDictionary contains a specific key.

public virtual bool ContainsValue(string value)

Determines if the StringDictionary contains a specific value.

public virtual void CopyTo(Array array, int index)

Copies the string dictionary values to a one-dimensional Array instance at the specified index.

public virtual IEnumerator GetEnumerator()

Returns an enumerator that iterates through the string dictionary.

public virtual void Remove(string key)

Removes the entry with the specified key from the string dictionary.