|
OrderedDictionaryTKey, TValueItem(TKey) Property
|
Gets or sets the value associated with the specified key as an O(1) operation.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax public TValue this[
TKey key
] { get; set; }
Public Default Property Item (
key As TKey
) As TValue
Get
Set
public:
virtual property TValue default[TKey key] {
TValue get (TKey key) sealed;
void set (TKey key, TValue value) sealed;
}
abstract Item : 'TValue with get, set
override Item : 'TValue with get, set
function get_Item(key);
function set_Item(value);
View SourceParameters
- key TKey
- The key of the value to get or set.
Return Value
TValueThe value associated with the specified key. If the specified key is not found, a get operation throws a
KeyNotFoundException, and a set operation creates a new element with the specified key.
Implements
IDictionaryTKey, TValueItemTKeyIReadOnlyDictionaryTKey, TValueItemTKeyExceptions See Also