ImmutableDictionary<TKey,TValue>.Builder.Item[TKey] Propriedade

Definição

Obtém ou define o elemento com a chave especificada.

public:
 property TValue default[TKey] { TValue get(TKey key); void set(TKey key, TValue value); };
public TValue this[TKey key] { get; set; }
member this.Item('Key) : 'Value with get, set
Default Public Property Item(key As TKey) As TValue

Parâmetros

key
TKey

Elemento a ser obtido ou definido.

Valor da propriedade

TValue

O elemento que tem a chave especificada.

Implementações

Exceções

key é null.

A propriedade está sendo recuperada e key não foi encontrado.

A propriedade está sendo definida e o IDictionary<TKey,TValue> é somente leitura.

Aplica-se a