Skip to content

QuadDictionary.GetValueRefOrAddDefault(TKey, bool) method

Defined in

Type: QuadDictionary Namespace: ReactiveList.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

NameTypeDescription
keyTKeyThe key to look up or add.
out existsbool (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.