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