QuadDictionary.GetValueRefOrAddDefault(TKey, bool) method¶
Defined in
Type: QuadDictionaryReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public ref TValue? GetValueRefOrAddDefault(TKey key, out bool exists)
View source (opens in a new tab)
Summary: Gets a reference to the value for the specified key, adding a default entry if the key does not exist.
Parameters
| Name | Type | Description |
|---|---|---|
key | TKey | The key to look up or add. |
out exists | bool (opens in a new tab) | When this method returns, true if the key existed; otherwise, false. |
Returns: TValue? -- A reference to the value associated with the key.