Click or drag to resize

ContainerHelper.Intersect<K, V> Method (Dictionary<K, V>, Dictionary<K, V>)

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.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public static Dictionary<K, V> Intersect<K, V>(
	Dictionary<K, V> a,
	Dictionary<K, V> b
)

Parameters

a
Type: System.Collections.Generic.Dictionary<K, V>
A dictionary.
b
Type: System.Collections.Generic.Dictionary<K, V>
Another dictionary of compatible type to a.

Type Parameters

K
V

Return Value

Type: Dictionary<K, V>
A new dictionary containing all elements from a, which are also in b.
See Also