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

DictionaryBase

Provides the abstract base class for a strongly typed collection of key/value pairs.
public int Count { get; }

Gets the number of elements contained in the DictionaryBase instance.

protected IDictionary Dictionary { get; }

Gets the list of elements contained in the DictionaryBase instance.

protected Hashtable InnerHashtable { get; }

Gets the list of elements contained in the DictionaryBase instance.

protected DictionaryBase()

Initializes a new instance of the DictionaryBase class.

public void Clear()

Clears the contents of the DictionaryBase instance.

public void CopyTo(Array array, int index)

Copies the DictionaryBase elements to a one-dimensional Array at the specified index.

Returns an IDictionaryEnumerator that iterates through the DictionaryBase instance.

protected virtual void OnClear()

Performs additional custom processes before clearing the contents of the DictionaryBase instance.

protected virtual void OnClearComplete()

Performs additional custom processes after clearing the contents of the DictionaryBase instance.

protected virtual object OnGet(object key, object currentValue)

Gets the element with the specified key and value in the DictionaryBase instance.

protected virtual void OnInsert(object key, object value)

Performs additional custom processes before inserting a new element into the DictionaryBase instance.

protected virtual void OnInsertComplete(object key, object value)

Performs additional custom processes after inserting a new element into the DictionaryBase instance.

protected virtual void OnRemove(object key, object value)

Performs additional custom processes before removing an element from the DictionaryBase instance.

protected virtual void OnRemoveComplete(object key, object value)

Performs additional custom processes after removing an element from the DictionaryBase instance.

protected virtual void OnSet(object key, object oldValue, object newValue)

Performs additional custom processes before setting a value in the DictionaryBase instance.

protected virtual void OnSetComplete(object key, object oldValue, object newValue)

Performs additional custom processes after setting a value in the DictionaryBase instance.

protected virtual void OnValidate(object key, object value)

Performs additional custom processes when validating the element with the specified key and value.