Table of Contents

IDictionary.AddOrSetValue Method

Adds a key-value pair, or updates the value if the key already exists.

Syntax

Unit: Bcl.Collections

procedure IDictionary.AddOrSetValue(const Key: TValue; const Value: TValue); virtual; abstract;

Parameters

<-> Parameter Type Description
const Key TValue The key to add or update.
const Value TValue The value to associate with the key.

See also