internal Row(CsvData parent, IEnumerable <string> cells) { _parent = parent; _cells = cells.ToList(); }
/// <summary> /// An extension to IFileSystem types that serializes CSV data and writes it to a file. The default encoding (UTF-8) is used. /// </summary> /// <param name="fileSystem">The extended object</param> /// <param name="path">The path to the file to write. If exists, it must point to a file.</param> /// <param name="data">The CSV data to serialize</param> /// <exception cref="FileExpectedException">Thrown if the path does not point to a file.</exception> public static void WriteCsv(this IFileSystem fileSystem, FileSystemPath path, CsvData data) { fileSystem.WriteTextFile(path, data.Serialize()); }