Read-only, generic collection of key/value pairs.
Inheritance Hierarchy
Stemmer.Cvb.Collections.GenericReadOnlyDictionaryBaseTKey, TValue
Stemmer.Cvb.Collections.GenericReadOnlyDictionaryTKey, TValue
Namespace: Stemmer.Cvb.Collections.Generic
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
Type Parameters
- TKey
- Type of keys in the dictionary.
- TValue
- Type of values in the dictionary.
The ReadOnlyDictionaryTKey, TValue type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ReadOnlyDictionaryTKey, TValue |
Creates a new ReadOnlyDictionary wrapping the given
dictionary.
|
Properties
| Name | Description | |
|---|---|---|
| Count |
Gets the number of items in the dictionary.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| Dictionary |
Gets the wrapped dictionary.
| |
| Item |
Gets the element that has the specified key.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| Keys |
Gets a read-only collection of all keys in this dictionary.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| Values |
Gets a read-only collection of all values in this dictionary.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) |
Methods
| Name | Description | |
|---|---|---|
| Contains |
Determines whether the item is in this collection.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| ContainsKey |
Determines whether the key is in this collection.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| CopyTo |
Copies the entire collection to a compatible one-dimensional
array, starting at the specified
arrayIndex.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| 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.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) | |
| 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.
(Inherited from ReadOnlyDictionaryBaseTKey, TValue.) |
Explicit Interface Implementations
Remarks
This class wraps another dictionary as a read-only view on it.
See Also