Пример #1
0
 public Node GetMultipleNode(Node parentNode, INodeGetter nodeGetter)
 {
     foreach (Node child in parentNode.Children)
     {
         return(nodeGetter.GetNode(child));
     }
 }
Пример #2
0
 public Node GetRepeatingNode(Node parentNode, INodeGetter nodeGetter)
 {
     for (int i = 0; i < parentNode.Count; i++)
     {
         // Assume meaningful constructor for Node
         return(nodeGetter.GetNode(new Node(i)));
     }
 }