Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Collections.​DictionaryBase
Assembly: System.Collections.NonGeneric
Inheritance: object → DictionaryBase
Provides the <see langword="abstract" /> base class for a strongly typed collection of key/value pairs.
Properties
public
int
Count
Gets the number of elements contained in the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
IDictionary
Dictionary
Gets the list of elements contained in the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
Hashtable
InnerHashtable
Gets the list of elements contained in the <see cref="T:System.Collections.DictionaryBase" /> instance.
Methods
public
void
Clear​()
Clears the contents of the <see cref="T:System.Collections.DictionaryBase" /> instance.
public
void
CopyTo​(Array array,
int index)
array
The one-dimensional <see cref="T:System.Array" /> that is the destination of the <see cref="T:System.Collections.DictionaryEntry" /> objects copied from the <see cref="T:System.Collections.DictionaryBase" /> instance. The <see cref="T:System.Array" /> must have zero-based indexing.
index
The zero-based index in <paramref name="array" /> at which copying begins.
Copies the <see cref="T:System.Collections.DictionaryBase" /> elements to a one-dimensional <see cref="T:System.Array" /> at the specified index.
public
IDictionaryEnumerator
GetEnumerator​() Returns An <see cref="T:System.Collections.IDictionaryEnumerator" /> for the <see cref="T:System.Collections.DictionaryBase" /> instance.
Returns an <see cref="T:System.Collections.IDictionaryEnumerator" /> that iterates through the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnClear​()
Performs additional custom processes before clearing the contents of the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnClearComplete​()
Performs additional custom processes after clearing the contents of the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
object
OnGet​(object key,
object currentValue)
key
The key of the element to get.
currentValue
The current value of the element associated with <paramref name="key" /> .
Returns An <see cref="T:System.Object" /> containing the element with the specified key and value.
Gets the element with the specified key and value in the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnInsert​(object key,
object value)
key
The key of the element to insert.
value
The value of the element to insert.
Performs additional custom processes before inserting a new element into the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnInsertComplete​(object key,
object value)
key
The key of the element to insert.
value
The value of the element to insert.
Performs additional custom processes after inserting a new element into the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnRemove​(object key,
object value)
key
The key of the element to remove.
value
The value of the element to remove.
Performs additional custom processes before removing an element from the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnRemoveComplete​(object key,
object value)
key
The key of the element to remove.
value
The value of the element to remove.
Performs additional custom processes after removing an element from the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnSet​(object key,
object oldValue,
object newValue)
key
The key of the element to locate.
oldValue
The old value of the element associated with <paramref name="key" /> .
newValue
The new value of the element associated with <paramref name="key" /> .
Performs additional custom processes before setting a value in the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnSetComplete​(object key,
object oldValue,
object newValue)
key
The key of the element to locate.
oldValue
The old value of the element associated with <paramref name="key" /> .
newValue
The new value of the element associated with <paramref name="key" /> .
Performs additional custom processes after setting a value in the <see cref="T:System.Collections.DictionaryBase" /> instance.
protected
void
OnValidate​(object key,
object value)
key
The key of the element to validate.
value
The value of the element to validate.
Performs additional custom processes when validating the element with the specified key and value.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object