OrderedDictionaryTKey, TValueItem(TKey) Property
Gets or sets the value associated with the specified key as an O(1) operation.
Namespace: Gemstone.CollectionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
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;
}
function get_Item(key);
function set_Item(value);
- key TKey
- The key of the value to get or set.
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.
IDictionaryTKey, TValueItemTKeyIReadOnlyDictionaryTKey, TValueItemTKey ArgumentNullException | key is null. |
KeyNotFoundException | The property is retrieved and key does not exist in the collection. |