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

System.Collections.Specialized.ListDictionary

Implements IDictionary using a singly linked list. Recommended for collections that typically include fewer than 10 items.
public int Count { get; }

Gets the number of key/value pairs contained in the ListDictionary.

public bool IsFixedSize { get; }

Gets a value indicating whether the ListDictionary has a fixed size.

public bool IsReadOnly { get; }

Gets a value indicating whether the ListDictionary is read-only.

public bool IsSynchronized { get; }

Gets a value indicating whether the ListDictionary is synchronized (thread safe).

public object this[object key] { get; set; }

Gets or sets the value associated with the specified key.

public ICollection Keys { get; }

Gets an ICollection containing the keys in the ListDictionary.

public object SyncRoot { get; }

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

public ICollection Values { get; }

Gets an ICollection containing the values in the ListDictionary.

public ListDictionary()

Creates an empty ListDictionary using the default comparer.

public ListDictionary(IComparer comparer)

Creates an empty ListDictionary using the specified comparer.

public void Add(object key, object value)

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

public void Clear()

Removes all entries from the ListDictionary.

public bool Contains(object key)

Determines whether the ListDictionary contains a specific key.

public void CopyTo(Array array, int index)

Copies the ListDictionary entries to a one-dimensional Array instance at the specified index.

Returns an IDictionaryEnumerator that iterates through the ListDictionary.

public void Remove(object key)

Removes the entry with the specified key from the ListDictionary.