Share via


DictionaryExtensions.AddRange<TKey,TValue> Method

Definition

Add one dictionary content to the another dictionary

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)

Type Parameters

TKey

type of the dictionary argument key

TValue

type of the dictionary argument value

Parameters

target
IDictionary<TKey,TValue>

target dictionary

source
IDictionary<TKey,TValue>

source dictionary

forceUpdate
Boolean

whether we need to force update value

Applies to