public override IStoryCommand Clone() { DotnetExecCommand cmd = new DotnetExecCommand(); cmd.m_Object = m_Object.Clone(); cmd.m_Method = m_Method.Clone(); for (int i = 0; i < m_Args.Count; i++) { cmd.m_Args.Add(m_Args[i].Clone()); } return cmd; }
protected override IStoryCommand CloneCommand() { DotnetExecCommand cmd = new DotnetExecCommand(); cmd.m_Object = m_Object.Clone(); cmd.m_Method = m_Method.Clone(); for (int i = 0; i < m_Args.Count; i++) { cmd.m_Args.Add(m_Args[i].Clone()); } return(cmd); }