public void GetElementofComponent(Component component1, int index) { if (component1.IsComposite()) { component1.GetChild(index); } Console.WriteLine($"Result: {component1.Operation()}"); }
public void GetElementofComponent(Component component1, int index) { if (component1.IsComposite()) { component1.GetChild(index); } Console.WriteLine($"Result: {component1.Operation()}"); }