DictionaryExt.AddRange(TKey, TValue) Method

Adds all elements in another dictionary to the dictionary.

Namespace: UltimateXR.Extensions.System.Collections
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static void AddRange<TKey, TValue>(
	this IDictionary<TKey, TValue> self,
	IDictionary<TKey, TValue> other,
	bool overrideExistingKeys = false
)

Parameters

 

self
Type: System.Collections.Generic.IDictionary(TKey, TValue)
Destination dictionary
other
Type: System.Collections.Generic.IDictionary(TKey, TValue)
Source dictionary
overrideExistingKeys (Optional)
Type: System.Boolean
Determines if duplicated keys must be overriden with other’s values

Type Parameters

 

TKey
Key type
TValue
Value type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionary(TKey, TValue). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

DictionaryExt Class
UltimateXR.Extensions.System.Collections Namespace