• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






ghelement

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2017年2月23日

Newtonsoft.Json.dll读取json格式字符串值
摘要: using Newtonsoft.Json; using Newtonsoft.Json.Linq; string jsonText = "[{'a':'aaa','b':'bbb','c':'ccc'},{'a':'aaa2','b':'bbb2','c':'ccc2'}]"; string a = JObject.Parse(JArray.Parse(jso... 阅读全文
posted @ 2017-02-23 17:30 ghelement 阅读(395) 评论(0) 推荐(0)
 
c# 下载并保存文件在程序目录
摘要: public void HttpDownloadFile(string url) { string strFileName = url.Substring(url.LastIndexOf("/")+1); // 设置参数 HttpWebRequest request = WebRequest.Create(u... 阅读全文
posted @ 2017-02-23 17:15 ghelement 阅读(779) 评论(0) 推荐(0)