DictionaryExtensions.

MergeInto<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>) Method

Summary

Adds items from one dictionary to the other.

Syntax

public static void MergeInto<TKey, TValue>(this IDictionary<TKey, TValue> source, IDictionary<TKey, TValue> target)

Type Parameters

Name Description
TKey The type of keys in the dictionary.
TValue The type of values in the dictionary.

Parameters

Name Type Description
source IDictionary<TKey, TValue> The dictionary items are copied from.
target IDictionary<TKey, TValue> The dictionary items are added to.

Return Value

Type Description
void