Esempio n. 1
0
 /// <summary>
 /// Atomically adds a range of items to the map.  If any of the keys exist already
 /// then they're replaced.
 /// </summary>
 /// <remarks>Null is not allowed for a Key or a Value</remarks>
 /// <param name="range">Range of KeyValuePairs to add</param>
 /// <exception cref="ArgumentNullException">Throws ArgumentNullException the keys or values are null</exception>
 /// <returns>New Map with the items added</returns>
 public static Map <K, V> addOrUpdateRange <K, V>(Map <K, V> map, IEnumerable <KeyValuePair <K, V> > range) =>
 map.AddOrUpdateRange(range);
Esempio n. 2
0
 /// <summary>
 /// Atomically adds a range of items to the map.  If any of the keys exist already
 /// then they're replaced.
 /// </summary>
 /// <param name="range">Range of tuples to add</param>
 /// <returns>New Map with the items added</returns>
 public static Map <K, V> addOrUpdateRange <K, V>(Map <K, V> map, IEnumerable <Tuple <K, V> > range) =>
 map.AddOrUpdateRange(range);