public static bool ContainsNode <TNodeType>(this IContainerNode <TNodeType> containerNode, TNodeType nodeType) { Contract.Requires(containerNode != null); return(containerNode.ContainsNode(nodeType, Node <TNodeType> .DefaultNodeTypeEqualityComarer)); }