Exemplo n.º 1
0
 protected virtual void GetAncestorsInternal(ISiteMapNode node, ISiteMapNodeCollection ancestors)
 {
     if (node.ParentNode != null)
     {
         ancestors.Add(node.ParentNode);
         GetAncestorsInternal(node.ParentNode, ancestors);
     }
 }
Exemplo n.º 2
0
 protected virtual void GetDescendantsInternal(ISiteMapNode node, ISiteMapNodeCollection descendants)
 {
     foreach (var child in node.ChildNodes)
     {
         descendants.Add(child);
         GetDescendantsInternal(child, descendants);
     }
 }
Exemplo n.º 3
0
 protected virtual void GetDescendantsInternal(ISiteMapNode node, ISiteMapNodeCollection descendants)
 {
     foreach (var child in node.ChildNodes)
     {
         descendants.Add(child);
         GetDescendantsInternal(child, descendants);
     }
 }
Exemplo n.º 4
0
 protected virtual void GetAncestorsInternal(ISiteMapNode node, ISiteMapNodeCollection ancestors)
 {
     if (node.ParentNode != null)
     {
         ancestors.Add(node.ParentNode);
         GetAncestorsInternal(node.ParentNode, ancestors);
     }
 }