public Node GetMultipleNode(Node parentNode, INodeGetter nodeGetter) { foreach (Node child in parentNode.Children) { return(nodeGetter.GetNode(child)); } }
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))); } }