会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
勾司程序员
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2014年1月17日
京东宙斯有感
摘要: 京东宙斯有感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)
2013年12月30日
集合与lamdba
摘要: 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)
2013年12月27日
集合容器选择考虑~~
摘要: 集合容器考虑:我们首先要明确,如果存在泛型版本,优先使用。 是否需要按序列访问,元素在访问后放弃? 访问的顺序是先进先出或后进先出、随机访问? 是基于索引的访问,还是基于键的访问? 是只有值,还是键值对形式? 是一对一,还是一对多? 是否允许重复? 是按进入的顺序保存,还是需要按一定的规则排好序的,还是无所谓? 是否需要更快速度的检索和访问?
阅读全文
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)
上一页
1
2
3
公告