摘要: 京东宙斯有感1.实体类8成,接口1成,实现代码1成2.只提供我主动提交获取信息3.容器dictionary,返回类型jason,有xml转换工具类4.异常用trace类处理,生成log日志 待续。。。http://help.jd.com/jos/question-569.html 阅读全文
posted @ 2014-01-17 11:07 勾司程序员 阅读(350) 评论(0) 推荐(0)
摘要: List iList = new List() { 1, 2, 3, 4, 5 }; List iList2 = iList.ConvertAll(i => (i + 5)); /* foreach (int k in iList2) { Console.WriteLine(k.ToString()); } * */ iList2.ForEach(i => Console.WriteLine(i.ToString... 阅读全文
posted @ 2013-12-30 14:57 勾司程序员 阅读(177) 评论(0) 推荐(0)
摘要: namespace delegateLambda1{ class Program { delegate bool numberChoose(int i); static void Main(string[] args) { List iList = new List(10){1,2,3,4,5,6,7,8,9,10}; numberChoose nc1 = i => (i % 2 == 1); numberChoose nc2 = i => (i % 2 == 0); ... 阅读全文
posted @ 2013-12-30 11:53 勾司程序员 阅读(144) 评论(0) 推荐(0)
摘要: 集合容器考虑:我们首先要明确,如果存在泛型版本,优先使用。 是否需要按序列访问,元素在访问后放弃? 访问的顺序是先进先出或后进先出、随机访问? 是基于索引的访问,还是基于键的访问? 是只有值,还是键值对形式? 是一对一,还是一对多? 是否允许重复? 是按进入的顺序保存,还是需要按一定的规则排好序的,还是无所谓? 是否需要更快速度的检索和访问? 阅读全文
posted @ 2013-12-27 14:15 勾司程序员 阅读(103) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace eventDelegate{ //通水人 class middleBoy { // public delegate void playGame(object obj, playGameEventArgs e); } //消息 class playGameEventArgs:EventArgs ... 阅读全文
posted @ 2013-12-27 11:14 勾司程序员 阅读(475) 评论(0) 推荐(0)