using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DTS.Serialization.FIAT_ASC { /// /// /// Basic representation of a FIAT .asc file. /// /// public partial class File : Serialization.File, IWritable { public bool UseFlatExportFolders { get; set; } = false; /// /// /// Initialize an instance of the FIAT_ASC.File class. /// /// public File() : base("ASC") { } /// /// Get this file format's extension. /// public static string Extension => ".asc"; /// /// Get the file writer for this file type. /// public IWriter Exporter { get { try { if (_Exporter == null) { _Exporter = new Writer(this, DefaultEncoding) { UseFlatExportFolder = UseFlatExportFolders }; } return _Exporter; } catch (System.Exception ex) { throw new Exception("encountered problem getting exporter", ex); } } } private IWriter _Exporter = null; } }