internal static void ExportTable(ExportContext context, DataTable table, JsonWriter writer) { Debug.Assert(context != null); Debug.Assert(table != null); Debug.Assert(writer != null); var view = table.DefaultView; // // If there is an exporter (perhaps an override) for the // DataView in effect then use it. Otherwise our // DataViewExporter. // var exporter = context.FindExporter(view.GetType()); if (exporter != null) { exporter.Export(context, view, writer); } else { DataViewExporter.ExportView(context, view, writer); } }
internal static void ExportTable(ExportContext context, DataTable table, JsonWriter writer) { Debug.Assert(context != null); Debug.Assert(table != null); Debug.Assert(writer != null); DataViewExporter.ExportView(context, table.DefaultView, writer); }