ImmutableDictionary<TKey, TValue>.IImmutableDictionary<TKey, TValue>.SetItems Method

Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.

Namespace:  System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(
	IEnumerable<KeyValuePair<TKey, TValue>> items


Type: System.Collections.Generic.IEnumerable<KeyValuePair<TKey, TValue>>

The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.

Return Value

Type: System.Collections.Immutable.IImmutableDictionary<TKey, TValue>
A new immutable dictionary that contains the specified key/value pairs.


IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>>)

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.