using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Elwig.Helpers.Export { public interface IExporter : IDisposable, IAsyncDisposable { /// /// The default file extension of the exported files to be used (whithout a preceding ".") /// static string FileExtension { get; } /// /// Export the given data to the given file. /// /// The data to be exported void Export(IEnumerable data); /// /// Export the given data to the given file. /// /// The data to be exported Task ExportAsync(IEnumerable data); } }