ImmutableDictionary<TKey,TValue>.IImmutableDictionary<TKey,TValue>.AddRange 方法

定义

请参阅 IImmutableDictionary<TKey,TValue> 接口。

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

参数

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

要添加到字典中的键/值对序列。

返回

一个新的不可变字典,其中包含其他键/值对。

实现

适用于

产品 版本
.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, 9
UWP 10.0