/// ------------------------------------------------------------------------------------ /// <summary> /// Makes a deep copy of the data source. /// </summary> /// ------------------------------------------------------------------------------------ public PaDataSource Copy() { return(new PaDataSource { SourceFile = SourceFile, Type = Type, ParseType = ParseType, FirstInterlinearField = FirstInterlinearField, Editor = Editor, LastModification = LastModification, SfmRecordMarker = SfmRecordMarker, SkipLoadingBecauseOfProblem = SkipLoadingBecauseOfProblem, SkipLoading = SkipLoading, ToolboxSortField = ToolboxSortField, TotalLinesInFile = TotalLinesInFile, XSLTFile = XSLTFile, FwDataSourceInfo = (FwDataSourceInfo == null ? null : FwDataSourceInfo.Copy()), FieldMappings = (FieldMappings == null ? null : FieldMappings.Select(m => m.Copy()).ToList()), }); }