[This is preliminary documentation and is subject to change.]
Add all values from range sequence to src IDictionary. Source is actually modified.
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static IDictionary<TKey, TValue> AddRange<TKey, TValue>(
this IDictionary<TKey, TValue> src,
IEnumerable<KeyValuePair<TKey, TValue>> range
)
public static IDictionary<TKey, TValue> AddRange<TKey, TValue>(
this IDictionary<TKey, TValue> src,
IEnumerable<KeyValuePair<TKey, TValue>> range
)
<ExtensionAttribute>
Public Shared Function AddRange(Of TKey, TValue) (
src As IDictionary(Of TKey, TValue),
range As IEnumerable(Of KeyValuePair(Of TKey, TValue))
) As IDictionary(Of TKey, TValue)
<ExtensionAttribute>
Public Shared Function AddRange(Of TKey, TValue) (
src As IDictionary(Of TKey, TValue),
range As IEnumerable(Of KeyValuePair(Of TKey, TValue))
) As IDictionary(Of TKey, TValue)
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
static IDictionary<TKey, TValue>^ AddRange(
IDictionary<TKey, TValue>^ src,
IEnumerable<KeyValuePair<TKey, TValue>>^ range
)
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
static IDictionary<TKey, TValue>^ AddRange(
IDictionary<TKey, TValue>^ src,
IEnumerable<KeyValuePair<TKey, TValue>>^ range
)
static member AddRange :
src : IDictionary<'TKey, 'TValue> *
range : IEnumerable<KeyValuePair<'TKey, 'TValue>> -> IDictionary<'TKey, 'TValue>
static member AddRange :
src : IDictionary<'TKey, 'TValue> *
range : IEnumerable<KeyValuePair<'TKey, 'TValue>> -> IDictionary<'TKey, 'TValue>
- TKey
- Type of key
- TValue
- Type of value
Return Value
Type:
IDictionary 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
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).