Click or drag to resize
MultiDictionaryBaseTKey, TValueReplace Method
Replaces all values associated with key with the single value value.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public virtual bool Replace(
	TKey key,
	TValue value
)

Parameters

key
Type: TKey
The key to associate with.
value
Type: TValue
The new values to be associated with key.

Return Value

Type: Boolean
Returns true if some values were removed. Returns false if key was not present in the dictionary before Replace was called.
Remarks
This implementation simply calls Remove, followed by Add.
See Also