Extensions.GetOrAdd<K,V> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Type Parameters
- K
- V
Parameters
- valueByKey
- IDictionary<K,V>
- key
- K
- make
- Func<K,V>
Returns
V