Base class for read-only, generic collection of key/value pairs.
Inheritance Hierarchy
Stemmer.Cvb.Collections.GenericReadOnlyDictionaryBaseTKey, TValue
Stemmer.Cvb.Collections.GenericReadOnlyDictionaryTKey, TValue
Stemmer.Cvb.DriverNodeMapDictionary
Stemmer.Cvb.DriverNotifyDictionary
Stemmer.Cvb.GenApiNodeMap
Namespace: Stemmer.Cvb.Collections.Generic
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public abstract class ReadOnlyDictionaryBase<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
Type Parameters
- TKey
- Type of keys in the dictionary.
- TValue
- Type of values in the dictionary.
The ReadOnlyDictionaryBaseTKey, TValue type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ReadOnlyDictionaryBaseTKey, TValue |
Creates a new ReadOnlyDictionary wrapping the given
dictionary.
|
Properties
| Name | Description | |
|---|---|---|
| Count |
Gets the number of items in the dictionary.
| |
| Dictionary |
Gets the wrapped dictionary.
| |
| Item |
Gets the element that has the specified key.
| |
| Keys |
Gets a read-only collection of all keys in this dictionary.
| |
| Values |
Gets a read-only collection of all values in this dictionary.
|
Methods
| Name | Description | |
|---|---|---|
| Contains |
Determines whether the item is in this collection.
| |
| ContainsKey |
Determines whether the key is in this collection.
| |
| CopyTo |
Copies the entire collection to a compatible one-dimensional
array, starting at the specified
arrayIndex.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator |
Returns an enumerator that iterates through this collection.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| TryGetValue |
Retrieves the value that is associated with the specific
key.
|
Explicit Interface Implementations
Remarks
This class wraps another dictionary as a read-only view on it.
See Also