The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ConcurrentDictionary<TKey, TValue>::GetOrAdd Method
.NET Framework (current version)
Adds a key/value pair to the ConcurrentDictionary<TKey, TValue> if the key does not already exist.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | GetOrAdd(TKey, TValue) | Adds a key/value pair to the ConcurrentDictionary<TKey, TValue> if the key does not already exist. |
![]() | GetOrAdd(TKey, Func<TKey, TValue>^) | Adds a key/value pair to the ConcurrentDictionary<TKey, TValue> by using the specified function, if the key does not already exist. |
Show:
