Exemple #1
0
 /// <summary>
 /// Atomically sets a series of items using the Tuples provided.
 /// </summary>
 /// <param name="items">Items to set</param>
 /// <exception cref="ArgumentException">Throws ArgumentException if any of the keys aren't in the map</exception>
 /// <returns>New map with the items set</returns>
 public static Map <K, V> trySetItems <K, V>(Map <K, V> map, IEnumerable <Tuple <K, V> > items) =>
 map.SetItems(items);
Exemple #2
0
 /// <summary>
 /// Atomically sets a series of items using the KeyValuePairs provided
 /// </summary>
 /// <param name="items">Items to set</param>
 /// <exception cref="ArgumentException">Throws ArgumentException if any of the keys aren't in the map</exception>
 /// <returns>New map with the items set</returns>
 public static Map <K, V> setItems <K, V>(Map <K, V> map, IEnumerable <KeyValuePair <K, V> > items) =>
 map.SetItems(items);