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

Definition

Applies a given set of key-value pairs to an immutable dictionary, replacing any conflicting keys in the resulting dictionary.

C#
System.Collections.Immutable.IImmutableDictionary<TKey,TValue> IImmutableDictionary<TKey,TValue>.SetItems(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);

Parameters

items
IEnumerable<KeyValuePair<TKey,TValue>>

The key-value pairs to set on the map. Any keys that conflict with existing keys will replace the previous values.

Returns

A copy of the immutable dictionary with updated key-value pairs.

Implements

Applies to

Производ Верзије
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0