Example #1
0
        private string BuildTable(IEnumerable <DataRow> rows, ISampler <DataRow> sampler)
        {
            var sb     = new StringBuilder();
            var sw     = new StringWriter(sb);
            var writer = new JsonTextWriter(sw);

            var tableHelper = new TableHelperJson();

            tableHelper.Execute(rows, sampler, writer);

            writer.Close();
            return(sb.ToString());
        }
Example #2
0
 private void BuildTable(IEnumerable <DataRow> rows, ISampler <DataRow> sampler, TableHelperJson tableHelper, JsonWriter writer)
 {
     tableHelper.Execute(rows, sampler, writer);
 }