关于JSON转换的问题

请问能不能直接把DATASET转换为JSON呢?
  public static string ToJSON(this object obj)
  {
  JavaScriptSerializer serializer = new JavaScriptSerializer();
  return serializer.Serialize(obj);
  }

  public static string ToJSON(this object obj, int recursionDepth)
  {
  JavaScriptSerializer serializer = new JavaScriptSerializer();
  serializer.RecursionLimit = recursionDepth;
  return serializer.Serialize(obj);
  }

烙印99
浏览 321回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP