Represents a lexical scope within a method.
表示方法内的词法范围。
Gets the root lexical scope for the current method.
获取当前方法的根词法范围。
Gets the parent lexical scope of the current scope.
取得目前语汇范围的开始位移。
Sets the name and lexical scope of this local variable.
设置该局部变量的名称和词法范围。
Defines the offset range for the specified lexical scope.
定义指定词法范围的偏移量范围。
Gets the child lexical scopes of the current lexical scope.
取得目前语汇范围的子系语汇范围。
There is an implicit lexical scope around the entire method.
整个方法有一个隐式词法范围。
Observe that it can refer to any variable live in the lexical scope (in this example, min).
注意到,它能够引用词法作用域中的任何变量(本例中是min)。
Specifies that the given, fully qualified namespace name is used within the open lexical scope.
指定在打开的词法范围内使用给定的、完全限定的命名空间名称。
Specifies that the given fully qualified namespace name is being used within the currently open lexical scope.
指定在当前打开的词法范围中正在使用给定的完全限定命名空间名称。
By understanding closures and lexical scope, you begin to perceive opportunities for new development patterns and idioms.
通过理解closures和文本化范围,您可开始感受到出现新的开发模式和惯用语法的机会。
Nested functions are perfectly understandable when they are invoked in the same lexical scope in which they are defined.
如果内嵌函数调用时的作用域就是它们定义时所处的词法作用域,那就很好理解了。
One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.
内部类以及lambda表达式一个局限性是——它们只引用来自它们的词法作用域的最终(final)局部变量。
These functions create a lexical closure on the scope in which they were defined like blocks in many dynamic languages.
像许多动态语言一样,这些函数在它们被定义的范围内创建了词法闭包。
The nicest thing about categories is the inherent scope limiting of the lexical block.
categories的好处是固有的词典块范围限制。
These 'my variables' are sometimes called' lexical 'because their scope depends only on the program text itself, and not on details of execution, such as what gets executed in what order.
my变量有时也叫做词法变量,因为它们的作用域仅仅依赖于程序文本自身,不依赖于执行细节,例如以什么顺序来执行什么。
The results of this code are exactly what you would expect from a strict application of the lexical scoping rule: a function is executed in the scope in which it was defined.
这段代码执行的结果会跟你所期望的遵循词法作用域规则的程序运行的完全一样:一个函数在它所被定义的作用域中执行。
The results of this code are exactly what you would expect from a strict application of the lexical scoping rule: a function is executed in the scope in which it was defined.
这段代码执行的结果会跟你所期望的遵循词法作用域规则的程序运行的完全一样:一个函数在它所被定义的作用域中执行。
应用推荐