07 2015 档案

摘要:public class chsHex{/// /// 从汉字转换到16进制/// /// /// public static string GetHexFromChs(string s){if ((s.Length % 2) != 0){s += " ";//空格//throw new Argum... 阅读全文
posted @ 2015-07-23 08:58 VSIT 阅读(668) 评论(0) 推荐(0)
摘要:方法一//调用API[System.Runtime.InteropServices.DllImport("user32", CharSet = System.Runtime.InteropServices.CharSet.Auto, ExactSpelling = true)]public stat... 阅读全文
posted @ 2015-07-22 18:50 VSIT 阅读(2638) 评论(0) 推荐(0)
摘要:EndPoint 类标识网络地址。这是一个 abstract 类。命名空间:System.Net程序集:System(在 System.dll 中)[SerializableAttribute]public abstract class EndPoint备注EndPoint 类提供了一个表示网络资源... 阅读全文
posted @ 2015-07-20 10:16 VSIT 阅读(2410) 评论(0) 推荐(0)
摘要:天气预报Web服务,数据来源于中国气象局Endpoint :http://www.webxml.com.cn/WebServices/WeatherWebService.asmxDisco :http://www.webxml.com.cn/WebServices/WeatherWebService... 阅读全文
posted @ 2015-07-20 10:15 VSIT 阅读(511) 评论(0) 推荐(1)
摘要:www.educity.cn 发布者:shenywww 来源:网络转载 发布日期:2014年10月06日 文章评论 发表文章   一.C#多线程概述   1.后台循环任务,少量UI更新:例如批量上传文件,并提供进度。这种情况使用BackgroundWorker组件是非常好的选择。   2.耗时的后台任务:这里的耗时任务是指一个时间较长的任务,并且不能精确获取进度,如:调用一个远程WebService接口。这种情况可以开两个线程,一个工作,一个更新UI(不能提供进度,只能显示动画表示系统在运行中)。   3.耗时的UI任务:当工作压力集中在UI响应上时,可以在工作者线程中增加延时,从而让UI线程获得响应时间。整个工作的总体时间会增加,但用户响应效果会好很多。   二.后台的循环任务,少量UI更新   这种情况使用BackgroundWorker组件是最好的选择。(详见附一)   三.后台耗时任务   在后台执行一个不可分解的耗时任务,需要进行界面更新,以便让客 阅读全文
posted @ 2015-07-13 20:38 VSIT 阅读(611) 评论(0) 推荐(0)