有人可以解释给我在现实简单的语言封什么?

问题描述:

可能重复:结果
什么是'倒闭'的.NET?

我我目前正在研究lambda表达式和单词封不断到来。 。有人可以解释给我真正简单的语言

I am currently looking at lambda expression and the word closure keeps coming. Can someone explain it to me in real simple language.

我会说这是一个重复:的What是'倒闭'的.NET?

I'd say this is a duplicate of: What are ‘closures’ in .NET?

在本质上,一个封闭件是能够在以后的时间被执行的代码块,但是它保持在其被第一次创建的环境 - 即它仍然可以使用创建它的方法的局部变量等即使之后方法执行结束。

"In essence, a closure is a block of code which can be executed at a later time, but which maintains the environment in which it was first created - i.e. it can still use the local variables etc of the method which created it, even after that method has finished executing."