public static TaskVersionChecker Copy(TaskVersionChecker source, TaskVersionChecker destination) { if (source == null) { return(null); } if (destination == null) { throw new ArgumentNullException("destination"); } // Base class destination.Description = source.Description; destination.FailureCausesAllStop = source.FailureCausesAllStop; destination.Sequence = source.Sequence; destination.TaskSucceeded = source.TaskSucceeded; destination.PrestoTaskType = source.PrestoTaskType; // Subclass destination.FileName = source.FileName; destination.SourceFolder = source.SourceFolder; destination.DestinationFolder = source.DestinationFolder; return(destination); }
public TaskVersionChecker CreateCopyFromThis() { TaskVersionChecker versionChecker = new TaskVersionChecker(); return(Copy(this, versionChecker)); }