QuaternaryDictionary.TryAdd(TKey, TValue) method¶
Defined in
Type: QuaternaryDictionaryReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public bool TryAdd(TKey key, TValue value)
View source (opens in a new tab)
Summary: Attempts to add the specified key and value to the cache if the key does not already exist.
Parameters
| Name | Type | Description |
|---|---|---|
key | TKey | The key to add. |
value | TValue | The value to associate with the key. |
Returns: bool (opens in a new tab) -- true if the key and value were added; otherwise, false.