







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets or sets the value associated with a given key. When getting a value, if this
key is not found in the collection, then an ArgumentException is thrown. When setting
a value, the value replaces any existing value in the dictionary.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public override sealed TValue this[ TKey key ]{ get; set;} |
| Visual Basic (Declaration) |
|---|
Public Overrides NotOverridable Default Property Item ( _ key As TKey _ ) As TValue |
| Visual C++ |
|---|
public: virtual property TValue default[TKey key] { TValue get (TKey key) override sealed; void set (TKey key, TValue value) override sealed; } |
Parameters
- key
- TKey
Field Value
The value associated with the key
Remarks
The indexer takes time O(log N), where N is the number of entries in the dictionary.
Exceptions
| Exception | Condition |
|---|---|
| System..::ArgumentException | A value is being retrieved, and the key is not present in the dictionary. |
| System..::ArgumentNullException | key is null. |
