Source/NFX/CollectionUtils.cs
/// <summary>
/// Add all values from range sequence to src IDictionary. Source is actually modified.
/// </summary>
/// <typeparam name="TKey">Type of key</typeparam>
/// <typeparam name="TValue">Type of value</typeparam>
/// <param name="src">Source IDictionary (where to add range)</param>
/// <param name="range">Sequence that should be added to source IDictionary</param>
/// <returns>Source with added elements from range (to have ability to chain operations)</returns>
Add all values from range sequence to src IDictionary. Source is actually modified.
Add all values from range sequence to src IDictionary . Source is actually modified .
public static IDictionary<TKey, TValue> AddRange<TKey, TValue>(this IDictionary<TKey, TValue> src, IEnumerable<KeyValuePair<TKey, TValue>> range)
    {
      foreach (KeyValuePair<TKey, TValue> kvp in range)
        src.Add(kvp.Key, kvp.Value);
      return src;
    }
public static IDictionary < TKey , TValue > AddRange < TKey , TValue > ( this IDictionary < TKey , TValue > src , IEnumerable < KeyValuePair < TKey , TValue > > range ) { foreach ( KeyValuePair < TKey , TValue > kvp in range ) src . Add ( kvp . Key , kvp . Value ) ; return src ; }
Add all values from range sequence to src IDictionary.
Add all values from range sequence to src IDictionary .
Source with added elements from range (to have ability to chain operations)
Source with added elements from range ( to have ability to chain operations )
IDictionary<TKey, TValue>
this
range
IEnumerable<KeyValuePair<TKey, TValue>>
Sequence that should be added to source IDictionary
Sequence that should be added to source IDictionary
src
Source IDictionary (where to add range)
Source IDictionary ( where to add range )
typeparam
Type of key
Type of key
typeparam
Type of value
Type of value