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