 | ContainerHelperIntersectChangedK, V(DictionaryK, V, DictionaryK, V, IGraph, INode, AttributeType) Method |
Removes all key/value pairs from map a whose keys are not 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 bool IntersectChanged<K, V>(
Dictionary<K, V> a,
Dictionary<K, V> b,
IGraph graph,
INode owner,
AttributeType attrType
)
Parameters
- a DictionaryK, V
- A dictionary to change.
- b DictionaryK, V
- Another dictionary of compatible type to a.
- graph IGraph
- The graph containing the node containing the attribute which gets changed.
- owner INode
- The node containing the attribute which gets changed.
- attrType AttributeType
- The attribute type of the attribute which gets changed.
Type Parameters
- K
- V
Return Value
BooleanA truth value telling whether at least one element was changed in a
See Also