摘要: 调用方式如下: 阅读全文
posted @ 2016-09-18 20:10 the boy、图样图森破 阅读(1877) 评论(0) 推荐(0) 编辑
摘要: Func<T1,T2> T1为输入参数,T2为输出参数 阅读全文
posted @ 2016-06-08 14:04 the boy、图样图森破 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.图片下载 阅读全文
posted @ 2016-03-17 13:56 the boy、图样图森破 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 public class Program 2 { 3 public static CountdownEvent cde = new CountdownEvent(0); 4 5 //每个线程下载的字节数,方便最后合并 6 public static ConcurrentDictionary dic = new... 阅读全文
posted @ 2016-03-17 10:31 the boy、图样图森破 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 var request = (HttpWebRequest)WebRequest.Create("URL"); 2 3 var data = Encoding.UTF8.GetBytes("username=zhenjinggu&md5Pwd=643d1820b9ce49bbf283b4875848596c&otpCode="); 4 5 ... 阅读全文
posted @ 2016-03-16 15:37 the boy、图样图森破 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 方式一:   阅读全文
posted @ 2016-03-14 12:11 the boy、图样图森破 阅读(170) 评论(0) 推荐(0) 编辑
摘要:   阅读全文
posted @ 2016-03-14 11:33 the boy、图样图森破 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 1.脚本文件Jsonp,代码如下: $(function () { TestJsonP(); function TestJsonP() { var xhrurl = 'http://localhost:43553/test/jsonp'; $.ajax({ // async: false, type 阅读全文
posted @ 2016-03-04 11:21 the boy、图样图森破 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 var constructors=typeof(Demo).GetConstructors(); 2 var paramsInfos=constructors[i].GetParameters();//I代表构造函数的下标 3 List<object> o = new List<object>{ 阅读全文
posted @ 2016-03-02 18:11 the boy、图样图森破 阅读(612) 评论(0) 推荐(0) 编辑
摘要: C# 构建XML的简单示例: 1 var pars = new Dictionary<string, string> 2 { 3 {"url","https://www.baidu.com/"}, 4 {"name","jack"}, 5 {"sex","0"}, 6 }; 7 StringWrit 阅读全文
posted @ 2016-02-29 14:32 the boy、图样图森破 阅读(857) 评论(0) 推荐(0) 编辑