public void SaveConvertedData(string targetFileName) { TargetFileName = CheckFileFormat(targetFileName) ? targetFileName : throw new ArgumentException(targetFileName); var targetFormatManager = FormatManagerFactory <T> .CreateFormatManager(TargetFormat); targetFormatManager.SaveFile(Data, targetFileName); }
public FileFormatConventer(string sourceFileName) { SourceFileName = CheckFile(sourceFileName) ? sourceFileName : throw new ArgumentException(sourceFileName); sourceFormatManager = FormatManagerFactory <T> .CreateFormatManager(SourceFormat); Data = SetData(); }