Extensions.GetOrAdd<K,V> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public static V GetOrAdd<K,V>(this System.Collections.Generic.IDictionary<K,V> valueByKey, K key, Func<K,V> make);
static member GetOrAdd : System.Collections.Generic.IDictionary<'K, 'V> * 'K * Func<'K, 'V> -> 'V
<Extension()>
Public Function GetOrAdd(Of K, V) (valueByKey As IDictionary(Of K, V), key As K, make As Func(Of K, V)) As V
類型參數
- K
- V
參數
- valueByKey
- IDictionary<K,V>
- key
- K
- make
- Func<K,V>
傳回
V