ex-int-02-meet-the-teacher/MeetTheTeacher/Export/IDataExporter.cs
github-classroom[bot] 1be1863b20
Initial commit
2025-04-24 07:02:41 +00:00

17 lines
580 B
C#

using MeetTheTeacher.Model;
namespace MeetTheTeacher.Export;
/// <summary>
/// Allows to export data of <see cref="ICsvRepresentable"/> type
/// </summary>
public interface IDataExporter
{
/// <summary>
/// Exports the given data.
/// File based exporters will use the provided file name as the name of the file they export.
/// </summary>
/// <param name="data">Data to export</param>
/// <param name="fileName">File name to be used; without the extension</param>
void Export(IEnumerable<ICsvRepresentable> data, string? fileName);
}