private static bool nodeIsDescendantOfMenu(SiteMapNode node, out SiteMapNodeCollection col) { col = null; if (node == null) return false; foreach (SiteMapNode menuNode in MenuNodes) { if (!node.IsDescendantOf(menuNode)) continue; col = menuNode.ChildNodes; return true; } return false; }