 | ContainerHelperIntersectK, V(DictionaryK, V, DictionaryK, V) Method |
Creates a new dictionary containing all key/value pairs from
a whose keys are also contained in b.
If both dictionaries contain one key, the value from a takes precedence, in contrast to union.
Namespace: de.unika.ipd.grGen.libGrAssembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntaxpublic static Dictionary<K, V> Intersect<K, V>(
Dictionary<K, V> a,
Dictionary<K, V> b
)
Parameters
- a DictionaryK, V
- A dictionary.
- b DictionaryK, V
- Another dictionary of compatible type to a.
Type Parameters
- K
- V
Return Value
DictionaryK,
VA new dictionary containing all elements from
a,
which are also in
b.
See Also