System.Collections.Generic.IDictionary.ContainsKey(TNode)

Here are the examples of the csharp api System.Collections.Generic.IDictionary.ContainsKey(TNode) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : SplineGearLinkIndicationProcessor.cs
with GNU General Public License v3.0
from mrojkov

private static void Link<TLinkIndicatorButton, TNode, TGear>(IDictionary<TNode, HashSet<TGear>> links, TGear gear, TNode node, RollNodeView view)
			where TLinkIndicatorButton : LinkIndicatorButton, new()
			where TNode : Node
		{
			if (node == null) {
				return;
			}
			if (!links.ContainsKey(node)) {
				links.Add(node, new HashSet<TGear> { gear });
			} else {
				links[node].Add(gear);
			}
			view.LinkIndicatorButtonContainer.EnableIndication<TLinkIndicatorButton>().AddLinkedNode(node);
		}