MultiDictionaryBaseTKey, TValueReplace Method |
Replaces all values associated with key with the single value value.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual bool Replace(
TKey key,
TValue value
)
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:
BooleanReturns true if some values were removed. Returns false if
key was not
present in the dictionary before Replace was called.
RemarksThis implementation simply calls Remove, followed by Add.
See Also