摘要:
调用方式如下: 阅读全文
摘要:
Func<T1,T2> T1为输入参数,T2为输出参数 阅读全文
摘要:
1.图片下载 阅读全文
摘要:
1 public class Program 2 { 3 public static CountdownEvent cde = new CountdownEvent(0); 4 5 //每个线程下载的字节数,方便最后合并 6 public static ConcurrentDictionary dic = new... 阅读全文
摘要:
1 var request = (HttpWebRequest)WebRequest.Create("URL"); 2 3 var data = Encoding.UTF8.GetBytes("username=zhenjinggu&md5Pwd=643d1820b9ce49bbf283b4875848596c&otpCode="); 4 5 ... 阅读全文
摘要:
1.脚本文件Jsonp,代码如下: $(function () { TestJsonP(); function TestJsonP() { var xhrurl = 'http://localhost:43553/test/jsonp'; $.ajax({ // async: false, type 阅读全文
摘要:
1 var constructors=typeof(Demo).GetConstructors(); 2 var paramsInfos=constructors[i].GetParameters();//I代表构造函数的下标 3 List<object> o = new List<object>{ 阅读全文
摘要:
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 阅读全文