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

定义

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

 virtual System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.AddRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ pairs) = System::Collections::Immutable::IImmutableDictionary<TKey, TValue>::AddRange;
System.Collections.Immutable.IImmutableDictionary<TKey,TValue> IImmutableDictionary<TKey,TValue>.AddRange (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> pairs);
abstract member System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.AddRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
override this.System.Collections.Immutable.IImmutableDictionary<TKey,TValue>.AddRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Immutable.IImmutableDictionary<'Key, 'Value>
Function AddRange (pairs As IEnumerable(Of KeyValuePair(Of TKey, TValue))) As IImmutableDictionary(Of TKey, TValue) Implements IImmutableDictionary(Of TKey, TValue).AddRange

参数

pairs
IEnumerable<KeyValuePair<TKey,TValue>>

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

返回

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

实现

适用于