ImmutableSortedDictionary<TKey, TValue>.AddRange Method (IEnumerable<KeyValuePair<TKey, TValue>>)

 

Adds the specific key/value pairs to the immutable sorted dictionary.

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

public ImmutableSortedDictionary<TKey, TValue> AddRange(
	IEnumerable<KeyValuePair<TKey, TValue>> items
)

Parameters

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

The key/value pairs to add.

Return Value

Type: System.Collections.Immutable.ImmutableSortedDictionary<TKey, TValue>

A new immutable dictionary that contains the additional key/value pairs.

Exception Condition
ArgumentException

One of the given keys already exists in the dictionary but has a different value.

Return to top
Show: