ImmutableDictionary<TKey, TValue>::IImmutableDictionary<TKey, TValue>::Add Method (TKey, TValue)
Adds an element with the specified key and value to the immutable dictionary.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
private: virtual IImmutableDictionary<TKey, TValue>^ Add( TKey key, TValue value ) sealed = IImmutableDictionary<TKey, TValue>::Add
Parameters
- key
-
Type:
TKey
The key of the element to add.
- value
-
Type:
TValue
The value of the element to add.
Return Value
Type: System.Collections.Immutable::IImmutableDictionary<TKey, TValue>^A new immutable dictionary that contains the additional key/value pair.
This member is an explicit interface member implementation. It can be used only when the ImmutableDictionary<TKey, TValue> instance is cast to an IImmutableDictionary<TKey, TValue> interface.
Show: