Example #1
0
 public void WriteAll(Stream stream, Table data)
 {
     foreach (var row in data.Rows)
     {
         WriteRow(stream, row);
     }
 }
Example #2
0
 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};
 }