posted @ 2016-09-27 23:34 东大叔 阅读(9) 评论(0) 推荐(0)
posted @ 2016-09-23 22:04 东大叔 阅读(7) 评论(0) 推荐(0)
|
|||
摘要:
Basically, the compiler does this for you.If you write a lambda as a single statement (and don't include block notation, ie: {}), the returned value i... 阅读全文
posted @ 2016-01-17 21:48 东大叔 阅读(233) 评论(0) 推荐(0)
摘要:
转:http://www.cnblogs.com/liulun/archive/2013/02/26/2909985.html委托delegate Boolean moreOrlessDelgate(int item); class Program { ... 阅读全文
posted @ 2015-01-08 21:13 东大叔 阅读(204) 评论(0) 推荐(0)
摘要:
当函数的参数有多个时(比如多于4个),可以考虑将这些参数组织放入一个class(struct),然后函数参数就减少为一个。 1.以class instance来穿参数,可以很容易在各个函数之间传递参数,能减少代码量。 2.如果增加或减少参数,只要修改class的定义即可,函数signature不... 阅读全文
posted @ 2014-10-28 11:26 东大叔 阅读(130) 评论(0) 推荐(0) |
|||