예제 #1
0
        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);
        }
예제 #2
0
        public TaskVersionChecker CreateCopyFromThis()
        {
            TaskVersionChecker versionChecker = new TaskVersionChecker();

            return(Copy(this, versionChecker));
        }