Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.Collections.IIndexed< in in K, out out V > Interface Template Reference

Represents the essence of a dictionary, which returns a value given a key. More...


Source file:

Remarks

Represents the essence of a dictionary, which returns a value given a key.

Template Parameters
KInput type.
VOutput type.

Consider implementing ITryGet<K, V> instead, or in addition to this interface alone.

Properties

this[K key] [get]
 Gets the value associated with the specified key. More...
 

Property Documentation

◆ this[K key]

V Loyc.Collections.IIndexed< in in K, out out V >.this[K key]
get

Gets the value associated with the specified key.

Exceptions
KeyNotFoundExceptionThe key was not found.
ArgumentOutOfRangeExceptionThe class implements IReadOnlyList<V> and the key is an integer index that is outside the valid range.
IndexOutOfRangeExceptionThe object is an array or other list, and the key is an integer index that is outside the valid range.