DictionaryExtensions.AddRange<TKey,TValue> 方法

定义

将一个字典内容添加到另一个字典

public static void AddRange<TKey,TValue> (this System.Collections.Generic.IDictionary<TKey,TValue> target, System.Collections.Generic.IDictionary<TKey,TValue> source, bool forceUpdate = true);
static member AddRange : System.Collections.Generic.IDictionary<'Key, 'Value> * System.Collections.Generic.IDictionary<'Key, 'Value> * bool -> unit
<Extension()>
Public Sub AddRange(Of TKey, TValue) (target As IDictionary(Of TKey, TValue), source As IDictionary(Of TKey, TValue), Optional forceUpdate As Boolean = true)

类型参数

TKey

字典参数键的类型

TValue

字典参数值的类型

参数

target
IDictionary<TKey,TValue>

目标字典

source
IDictionary<TKey,TValue>

源字典

forceUpdate
Boolean

是否需要强制更新值

适用于