摘要: 1、 装箱和拆箱是一个抽象的概念 2、 装箱是将值类型转换为引用类型 ;拆箱是将引用类型转换为值类型 利用装箱和拆箱功能,可通过允许值类型的任何值与Object 类型的值相互转换,将值类型与引用类型链接起来 例如: int val = 100; object obj = val; Console.W 阅读全文
posted @ 2016-06-16 22:05 金融之王 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 一、为什么要线程需要同步 线程有可能和其他线程共享一些资源,比如,内存,文件,数据库等。当多个线程同时读写同一份共享资源的时候,可能会引起冲突。这时候,我们需要引入线程“同步”机制,即各位线程之间要有个先来后到,不能一窝蜂挤上去抢作一团。线程同步的真实意思和字面意思恰好相反。线程同步的真实意思,其实 阅读全文
posted @ 2016-06-16 21:11 金融之王 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1、当在主线程中创建了一个线程,那么该线程的IsBackground默认是设置为FALSE的。 2、当主线程退出的时候,IsBackground=FALSE的线程还会继续执行下去,直到线程执行结束。 3、只有IsBackground=TRUE的线程才会随着主线程的退出而退出。 4、当初始化一个线程, 阅读全文
posted @ 2016-06-16 20:39 金融之王 阅读(801) 评论(1) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-06-13 19:54 金融之王 阅读(4) 评论(0) 推荐(0) 编辑
摘要: List<List<string>> allList = new List<string>() { new List<string>(){"a","b","c"}, new List<string>(){"e","f","g"}, new List<string>(){"h","i","j"}, . 阅读全文
posted @ 2016-06-02 22:09 金融之王 阅读(258) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-02 21:55 金融之王 阅读(530) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Web; namespace FTPHelp 阅读全文
posted @ 2016-06-02 21:11 金融之王 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 公司要求ftp接口不能以明文方式传输,所以adc系统将增加ftps方式 但是在网找了很多方式都无法实现用了方法一 FtpWebRequest request = (FtpWebRequest)WebRequest.Create(FileUploadPath); request.Method = We 阅读全文
posted @ 2016-06-02 20:48 金融之王 阅读(540) 评论(0) 推荐(0) 编辑
摘要: Jianqiang's Mobile Dev BlogiOS、Android、WPCnBlogsHomeNew PostContactAdminRssPosts - 528 Articles - 15 Comments - 3675WPF SDK研究 之 AppModel这一章讲的应用程序级别的开发技术,尤其是在本章末尾,重点介绍了PageFunction结构化导航,以及CustomContentState定制导航。 本章共计27个示例,全都在VS2008下.NET3.5测试通过,点击这里下载:AppModel.rar1.ActivationSampleThis sample demo 阅读全文
posted @ 2013-09-04 09:28 金融之王 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Jianqiang's Mobile Dev BlogiOS、Android、WPCnBlogsHomeNew PostContactAdminRssPosts - 528 Articles - 15 Comments - 3675WPF SDK研究 之 AppModel这一章讲的应用程序级别的开发技术,尤其是在本章末尾,重点介绍了PageFunction结构化导航,以及CustomContentState定制导航。 本章共计27个示例,全都在VS2008下.NET3.5测试通过,点击这里下载:AppModel.rar1.ActivationSampleThis sample demo 阅读全文
posted @ 2013-09-04 09:27 金融之王 阅读(1123) 评论(0) 推荐(0) 编辑