Property Item
Item[TKey]
Gets or sets the element with the specified key.
Declaration
public TValue this[TKey key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
TKey | key | The key of the element to get or set. |
Property Value
Type | Description |
---|---|
TValue | The element with the specified key. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
KeyNotFoundException | The property is retrieved and |
NotSupportedException | The property is set and the IDictionary<TKey,TValue> is read-only. |