private void WriteTables(List <TypeInfo> tableDescriptions, TableInfoFormatter <TypeInfo> formatter) { foreach (TypeInfo typeInfo in tableDescriptions) { WriteTable(typeInfo, formatter); } }
void WriteTable(TypeInfo id, TableInfoFormatter <TypeInfo> format) { #if DEBUG Console.WriteLine("writing table {0}", id.Name, id.Version); #endif writer.WriteLine(format.FormatHeader(id)); WriteFieldInfos(id.Fields); writer.WriteLine(" </table>"); writer.Flush(); }