Пример #1
0
        private TInput Clone(TInput row)
        {
            NLogStartOnce();
            TInput clone = ObjectCopy.Clone(row);

            LogProgress();
            return(clone);
        }
Пример #2
0
        private IEnumerable <TInput> DuplicateRow(TInput row)
        {
            if (row == null)
            {
                return(null);
            }
            List <TInput> result = new List <TInput>(NumberOfDuplicates);

            result.Add(row);
            LogProgress();
            for (int i = 0; i < NumberOfDuplicates; i++)
            {
                if (CanDuplicate?.Invoke(row) ?? true)
                {
                    TInput copy = ObjectCopy.Clone(row);
                    result.Add(copy);
                    LogProgress();
                }
            }
            return(result);
        }