| DictionaryBaseTKey, TValueItem Property |
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.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual TValue this[
TKey key
] { get; set; }public:
virtual property TValue default[TKey key] {
TValue get (TKey key);
void set (TKey key, TValue value);
}Parameters
- key
- Type: TKey
Key to find in the dictionary.
Return Value
Type:
TValueThe value associated with the key.
Implements
IDictionaryTKey, TValueItemTKey
Exceptions| Exception | Condition |
|---|
| KeyNotFoundException | Thrown from the get accessor if the key
was not found in the dictionary. |
See Also