Пример #1
0
 /// <summary>
 /// Converts a SingleData Row into a Json string.
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static string Jsonize(this DataRow dr)
 {
     var jsonizer = new PockItKnife.ToJson();
     return jsonizer.ConvertDataRow(dr);
 }
Пример #2
0
 /// <summary>
 /// Converts a DataTable into a Json string.
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static string Jsonize(this DataTable dt)
 {
     var jsonizer = new PockItKnife.ToJson();
     return jsonizer.ConvertDataTable(dt);
 }