The new method is created with the selected block of code in it refactored to properly use the argument and return values of the new method.
当重构了新方法内的所选代码块以便恰当使用新方法的参数和返回类型后,新方法就创建完成了。
Think of a closure as a code block that you can use as an argument, with special scoping rules.
闭包可被视作一个遵循特别作用域规则且可以用作参数的代码块。
Superficially the code changes are minor; rather than having a block of code following the "for" line, the code is passed as an argument to the "Parallel.For" function.
最直观的反应就是代码只需作细微的修改;在“for”语句内的代码块,可以作为参数传递到“Parallel.For”函数中。
The changes begin in the third code block, which USES the two-argument form of the built-in getline function to return a list of all the lines in the range to be realigned.
从第三个代码块开始发生变化,它使用内置的getline函数的双参数形式来返回需要重新对齐的行的列表。
The changes begin in the third code block, which USES the two-argument form of the built-in getline function to return a list of all the lines in the range to be realigned.
从第三个代码块开始发生变化,它使用内置的getline函数的双参数形式来返回需要重新对齐的行的列表。
应用推荐