2013年3月29日
摘要: 闭包在计算机学上的定义如下:“In computer science, a closure is a first-class function with free variables that are bound in the lexical environment.”懂了没有?没懂,那么继续读下去。函数是一等公民(Your Functions Are First Class) 那么什么是”first-class function“?它是这样一种函数:我们的编程语言将它与一般数据类型同等对待。这意味着我么可以将一个函数赋值给一个变量、将函数作为参数传递或者像普通函数一样调用它…C#中可以通过匿 阅读全文
posted @ 2013-03-29 18:13 feichexia 阅读(1417) 评论(3) 推荐(0) 编辑