Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TRSDictionary<TKey,TValue> > Methods

TRSDictionary<TKey,TValue>.AddOrSetValue(TKey,TValue) Method

Scroll Prev Top Next More

Add key-value pair even when key already exists.

AddOrSetValue adds a key-value pair to a dictionary even if the key already exists. The key cannot be nil, but the value can. This method checks to see if the key exists in the dictionary, and if it does, it is equivalent to Items[key] := value;. Otherwise it is equivalent to Add(key, value);.

An    OnKeyNotify event and an    OnValueNotify event occur indicating an entry was added to the dictionary.

Namespace: RSGenerics.Collections



Type: TKey


Type: TValue

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb