 | ContainerHelperUnionK, V Method (DictionaryK, V, DictionaryK, V) |
Creates a new dictionary and fills in all key/value pairs from
a and b.
If both dictionaries contain one key, the value from b takes precedence
(this way the common case a = a | map<int, int> { 7 -> 13 }; would update an existing entry
with key 7 to 13).
Namespace:
de.unika.ipd.grGen.libGr
Assembly:
libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntaxpublic static Dictionary<K, V> Union<K, V>(
Dictionary<K, V> a,
Dictionary<K, V> b
)
Parameters
- a
- Type: System.Collections.GenericDictionaryK, V
A dictionary. - b
- Type: System.Collections.GenericDictionaryK, V
Another dictionary of compatible type to a.
Type Parameters
- K
- V
Return Value
Type:
DictionaryK,
VA new dictionary containing all elements from both parameters.
See Also