コード例 #1
0
 internal static void ExportView(ExportContext context, DataView view, JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WriteMember("columns");
     writer.WriteStartArray();
     foreach (DataColumn column in view.Table.Columns)
     {
         context.Export(column.ColumnName, writer);
     }
     writer.WriteEndArray();
     writer.WriteMember("rows");
     writer.WriteStartArray();
     foreach (DataRowView view2 in view)
     {
         context.Export(view2.Row.ItemArray, writer);
     }
     writer.WriteEndArray();
     writer.WriteEndObject();
 }