上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 一、几个基本概念的理解 问题一:为什么数组可以使用foreach输出各元素 答:数组是可枚举类型,它实现了一个枚举器(enumerator)对象;枚举器知道各元素的次序并跟踪它们的位置,然后返回请求的当前项 问题二:不用foreach能不能遍历各元素 问题三:什么是可枚举类 答:可枚举类是指实现了IEnumerable接口的类;IEnumerable接口只有一个成员GetEnumer... 阅读全文
posted @ 2016-05-28 22:52 Kimisme 阅读(1960) 评论(0) 推荐(0)
摘要: 一、什么是SuperSocket 以下是作者的介绍 执行以下命令,获取SuperSocket项目 $ git clone https://github.com/kerryjiang/SuperSocket 二、项目结构 三、开发过程 1.新建一个控制台项目ConsoleApp 1.1引用相关项目 1.2从Solution Items中引进日志文件 1.... 阅读全文
posted @ 2016-05-23 22:20 Kimisme 阅读(6973) 评论(2) 推荐(1)
摘要: 1.什么是Tuple Tuple类型,可以存放任何类型 2.Tuple有哪些分类 .Net 4.0 定义了8个泛型Tuple类,和一个Tuple静态类 3.Tuple的使用 阅读全文
posted @ 2016-05-23 19:15 Kimisme 阅读(403) 评论(0) 推荐(0)
摘要: 一、什么是委托 委托和类一样,是一种用户自定义类型; 类表示的是数据和方法的集合,而委托则持有一个或多个方法; 二、委托的使用 1.声明委托类型 委托是类型,与类一样,委托类型必须在被用来创建变量以及类型的对象之前声明; 注意: 以delegate关键字开头; 没有方法主体; 2.创建委托对象 委托是引用类型,因此有引用和对象; 方式一:使用带new运算符的对象创建表达式... 阅读全文
posted @ 2016-05-22 22:32 Kimisme 阅读(870) 评论(0) 推荐(3)
摘要: 一、开发环境 VS2013 .netframework4.5 spring.net1.3.1 二、项目结构 三、开发过程 1.编写Person类 1 namespace SpringNetConfigArg 2 { 3 public class Person 4 { 5 public string UserN... 阅读全文
posted @ 2016-05-22 16:41 Kimisme 阅读(369) 评论(0) 推荐(0)
摘要: 1.服务相关 (1).查看服务 C:\Windows\system32>net start 已经启动以下 Windows 服务: (2).启动服务 C:\Windows\system32>net start MpsSvc Windows Firewall 服务正在启动 . Windows Firewall 服务已经启动成功。 (3).停止服务 C:\Windows... 阅读全文
posted @ 2016-04-22 16:47 Kimisme 阅读(254) 评论(0) 推荐(0)
摘要: 1.创建版本库 (1)设置Git的配置变量。这些设置会在全局文件(.gitconfig)或系统文件(/etc/gitconfig)中做永久记录 $ git config --global user.name "Kimisme" $ git config --global user.email Kimisme@Git.com (2)在本用户的全局配置中,设置Git别名 $ git... 阅读全文
posted @ 2016-04-18 20:03 Kimisme 阅读(261) 评论(0) 推荐(0)
摘要: 最终代码 update T_Fee set gzl_dfg_op = 'delete' where MetReadRecordID in ( select MetReadRecordID from T_Fee where FeeItemID =2 and State =1 and MetReadRecordID is not null group by... 阅读全文
posted @ 2016-04-18 10:03 Kimisme 阅读(337) 评论(0) 推荐(0)
摘要: 一、发现问题 二、分析问题 .net长时间连接mysql导致超时; 方式一:连接用完后,就关闭连接 方式二:增加C#的执行sqlcommand时间 三、解决问题 增加了这一句,问题解决了 using (MySqlConnection conn = new MySqlConnection(mysqlCon.ConnectionString)) { mysqlDa.Se... 阅读全文
posted @ 2016-04-18 08:54 Kimisme 阅读(3479) 评论(0) 推荐(0)
摘要: 一、LF will be replaced by CRLF 1.发现问题 $ git add welcome.txt warning: LF will be replaced by CRLF in welcome.txt. The file will have its original line endings in your working directory. 2.分析... 阅读全文
posted @ 2016-04-17 17:13 Kimisme 阅读(380) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页