ImmutableDictionary<TKey,TValue>.Item[TKey] 属性

定义

获取与指定键关联的 TValueGets the TValue associated with the specified key.

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

参数

key
TKey

键的类型。The type of the key.

属性值

TValue

与指定的键相关联的值。The value associated with the specified key. 如果未找到任何结果,该操作将引发异常。If no results are found, the operation throws an exception.

实现

适用于