C# 解析json
摘要:在接口开发的过程中经常通过接口获取数据返回是json格式字符串。 但是返回的字符串可能比较复杂,可能不止一种类型的数据。 例如: 如何解析呢剔除其他信息只获取具体数据呢? ps:使用JavaScriptSerializer 或者 Json.Net 都可以 第一种方法我用的是JavaScriptSer
阅读全文
C# 获取本机CPU序列号,MAC地址,硬盘ID,本机IP地址,计算机名,物理内存,PC类型
摘要:首先引入服务 然后 调用 本文转载自http://blog.sina.com.cn/s/blog_7eeb43210101hf7f.html
阅读全文
c# NPOI 导出EXCEL (在下方显示图片)
摘要:需要引入dll文件 也可以在NuGet里面管理(推荐) 比较方便 。 //插入图片 byte[] bytes = System.IO.File.ReadAllBytes(FileName); if (!string.IsNullOrEmpty(FileName)) { int pictureIdx
阅读全文
webservice 接口通过 HTTP 获取数据
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Net; 6 using System.Text; 7 using System.I
阅读全文