摘要:
///<summary>///通过单利模式实现数据程序缓存///DataInstanct.GetInstan().Add(0)[写入数据]///DataInstanct.GetInstan().Clear()[清空数据存储]///</summary>publicclassDataInstance{///<summary>///数据仓库///</summary>publicstaticList<int>dataWarehouse=newList<int>();privatereadonlystaticDataInstanct 阅读全文
摘要:
1.Get请求cs:privatevoidDownload(){stringurl="http://localhost:13936/GetData.aspx?id=getwangk";WebClientclient=newWebClient();client.DownloadStringCompleted+=newDownloadStringCompletedEventHandler(DownloadBind);client.DownloadStringAsync(newUri(url));}privatevoidDownloadBind(objectsender,Down 阅读全文