Files
DP44/Common/DTS.Common.Serialization/FtssCsv/FtssTsv.File.cs
2026-04-17 14:55:32 -04:00

58 lines
1.4 KiB
C#

/*
* FtssTsv.File.cs
*
* Copyright © 2009
* Diversified Technical Systems, Inc.
* All Rights Reserved
*/
namespace DTS.Serialization.FtssTsv
{ ///
/// <summary>
/// Basic representation of a FTSS TSV file.
/// </summary>
///
public partial class File
: Serialization.File, IWritable<Test>
{ ///
/// <summary>
/// Initialize an instance of the FtssTsv.File class.
/// </summary>
///
public File()
: base("TSV")
{
}
/// <summary>
/// Get this file format's extension.
/// </summary>
public static string Extension => ".tsv";
/// <summary>
/// Get the file writer for this file type.
/// </summary>
public IWriter<Test> Exporter
{
get
{
try
{
if (_Exporter == null)
{
_Exporter = new Writer(this, DefaultEncoding);
}
return _Exporter;
}
catch (System.Exception ex)
{
throw new Exception("encountered problem getting exporter", ex);
}
}
}
private IWriter<Test> _Exporter = null;
}
}