IDictionary<TKey,TValue>.AddOrSetValue(TKey,TValue) Method
Adds an element with the provided key and value to the IDictionary<TKey,TValue>. If it already exists in the dictionary the provided value for the specified key is set.
public procedure AddOrSetValue(const key: TKey; const value: TValue);
Parameters
- key
- Type: TKey
The value to use as the key of the element to add or set.
- value
- Type: TValue
The value to use as the value of the element to add or set.