public object Clone() { ActionCommand actionCommand = new ActionCommand(this); return(actionCommand); }
private ActionCommand(ActionCommand actionCommand) { this.ActionTarget = actionCommand.ActionTarget == null ? null : actionCommand.ActionTarget.Clone() as ActionTarget; this.ActionType = actionCommand.ActionType; // this.ParameterAlarmConfigList = config.ParameterAlarmConfigList == null ? null : config.ParameterAlarmConfigList.Select(T => (ParameterAlarmConfig)T.Clone()).ToList(); }