private TInput Clone(TInput row) { NLogStartOnce(); TInput clone = ObjectCopy.Clone(row); LogProgress(); return(clone); }
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); }