/// <summary> /// Atomically adds a range of items to the map. If any of the keys exist already /// then they're ignored. /// </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> tryAddRange <K, V>(Map <K, V> map, IEnumerable <KeyValuePair <K, V> > keyValues) => map.TryAddRange(keyValues);