public void WriteAll(Stream stream, Table data) { foreach (var row in data.Rows) { WriteRow(stream, row); } }
public IEnumerable<Table> ReadToEnd(Stream resourceStream) { var @return = new Table(); using (var sr = new StreamReader(resourceStream)) { while (true) { IDictionary<string, TypedData> row = ReadRow(sr); if (row == null) { break; } else { @return.Rows.Add(row); } } } return new[] {@return}; }