DictionaryBaseTKey, TValue Class |
Provides a base class for generic dictionary.
Inheritance Hierarchy Namespace: SautinSoft.DocumentAssembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.7.18
Syntax public abstract class DictionaryBase<TKey, TValue> : IDictionary<TKey, TValue>,
ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>,
IEnumerable
Public MustInherit Class DictionaryBase(Of TKey, TValue)
Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)),
IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
Type Parameters
- TKey
- The type of the key.
- TValue
- The type of the value.
The DictionaryBaseTKey, TValue type exposes the following members.
Properties | Name | Description |
---|
| Count |
Gets the number of key/value pairs contained in the
DictionaryBaseTKey, TValue.
|
| Item |
Gets or sets the value associated with the specified key.
|
| Keys |
Gets a collection containing the keys in the
DictionaryBaseTKey, TValue.
|
| Values |
Gets a collection containing the values in the
DictionaryBaseTKey, TValue.
|
TopMethods | Name | Description |
---|
| Add(KeyValuePairTKey, TValue) |
Adds an item to the ICollectionT.
|
| Add(TKey, TValue) |
Adds a element with the provided key and value to the ICollectionT.
|
| Clear |
Removes all items from the IDictionaryTKey, TValue.
|
| Contains |
Determines whether the IDictionaryTKey, TValue contains a specific value.
|
| ContainsKey |
Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
|
| CopyTo |
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
|
| GetEnumerator |
Returns an enumerator that iterates through the collection.
|
| Remove |
Removes the element with the specified key from the IDictionaryTKey, TValue.
|
| TryGetValue |
Gets the value associated with the specified key.
|
TopSee Also