DictionaryBase<(Of <(<'TKey, TValue>)>)> Members
The DictionaryBase<(Of <(<'TKey, TValue>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Add(TKey, TValue) |
Adds a new key-value pair to the dictionary.
|
![]() |
Add(KeyValuePair<(Of <<'(TKey, TValue>)>>)) |
Adds a key-value pair to the collection. This implementation calls the Add method
with the Key and Value from the item.
|
![]() |
AsReadOnly |
Provides a read-only view of this dictionary. The returned IDictionary<TKey,TValue> provides
a view of the dictionary that prevents modifications to the dictionary. Use the method to provide
access to the dictionary without allowing changes. Since the returned object is just a view,
changes to the dictionary will be reflected in the view.
|
![]() |
Clear |
Clears the dictionary. This method must be overridden in the derived class.
|
![]() |
Contains |
Determines if a dictionary contains a given KeyValuePair. This implementation checks to see if the
dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals)
the value.
|
![]() |
ContainsKey |
Determines whether a given key is found
in the dictionary.
|
![]() |
Remove(TKey) |
Removes a key from the dictionary. This method must be overridden in the derived class.
|
![]() |
Remove(KeyValuePair<(Of <<'(TKey, TValue>)>>)) |
Determines if a dictionary contains a given KeyValuePair, and if so, removes it. This implementation checks to see if the
dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals)
the value. If so, the key-value pair is removed.
|
![]() |
ToString |
Shows the string representation of the dictionary. The string representation contains
a list of the mappings in the dictionary.
|
![]() |
TryGetValue |
Determines if this dictionary contains a key equal to key. If so, the value
associated with that key is returned through the value parameter. This method must be
overridden by the derived class.
|
Properties
Name | Description | |
---|---|---|
![]() |
Item |
The indexer of the dictionary. This is used to store keys and values and
retrieve values from the dictionary. The setter
accessor must be overridden in the derived class.
|
![]() |
Keys |
Returns a collection of the keys in this dictionary.
|
![]() |
Values |
Returns a collection of the values in this dictionary. The ordering of
values in this collection is the same as that in the Keys collection.
|