public void VisitMacro(IMacroCommandVisitor commandVisitor) { foreach (IMacroElement element in m_Elements) { IMacroCommand command = element != null ? element.InnerElement as IMacroCommand : null; if (command != null) { command.VisitMacroCommand(commandVisitor); } } }
public void VisitMacroCommand(IMacroCommand macroCommand) { macroCommand.VisitMacroCommand(this); }