IDictionary<TKey,TValue>.AddOrSetValue Method

Definition

Adds the specified key and value to the dictionary or sets the value associated with the specified key.

Delphi
procedure AddOrSetValue(const key: TKey; const value: TValue)

Parameters

key
TKey

The key of the element to add or set.

value
TValue

The value of the element to add or set.