CollectionUtils AddRange TKey, TValue  Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Add all values from range sequence to src IDictionary. Source is actually modified.

Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static IDictionary<TKey, TValue> AddRange<TKey, TValue>(
	this IDictionary<TKey, TValue> src,
	IEnumerable<KeyValuePair<TKey, TValue>> range
)

Parameters

src
Type: OnlineSystem.Collections.Generic IDictionary TKey, TValue 
Source IDictionary (where to add range)
range
Type: OnlineSystem.Collections.Generic IEnumerable OnlineKeyValuePair TKey, TValue  
Sequence that should be added to source IDictionary
Type Parameters

TKey
Type of key
TValue
Type of value

Return Value

Type: OnlineIDictionary TKey, TValue 
Source with added elements from range (to have ability to chain operations)

Usage Note

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