The controller can specify a code block for each type the controller expects.
控制器可以为控制器期望的每个类型指定一个代码块。
The next line starts a code block that dictates what happens when each client connects.
下一行开始一个代码块,规定当每个客户端连接时要做的事情。
The scope between the name space of the environment that defines the code block and the function that USES it are essentially one scope: the scope is closed.
定义代码块的环境的名称空间和使用它的函数之间的作用域本质上是一个作用域:该作用域是闭合的。
The method takes a parameter, specifying the length of the timeout, and a code block, specifying which content to rebuild when the content expires.
此方法接受参数,用来指定超时的时长,它还接受一个代码块,用来指定当内容过期时哪些内容需要重建。
Consult the next section for the code block that sets each frame when the mouse is down.
参考下一节中的代码块,它会在鼠标按下时设置各帧。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
One solution is to prepare a CDATA section, as in Listing 3, for the code block and just paste into that so that you don't need further escaping.
一种解决方案是使用CDATA部分,如清单3 所示,将代码直接粘贴到这个代码块,这样就不需要进行进一步的转义了。
The open and close brackets ([and]) mark the beginning and end of the code block, respectively.
开方括号和闭方括号([和])分别标志代码块的开始和结束。
Think of a closure as a code block that you can use as an argument, with special scoping rules.
闭包可被视作一个遵循特别作用域规则且可以用作参数的代码块。
In cases where synchronization is necessary, the synchronized code block should be minimized.
在有必要进行同步的场合下,应该尽量缩小同步代码块。
In this example, the code block is iterated until the loop is broken through the condition.
在此示例中,代码块迭代,直至循环根据条件而中断。
You can use the latter two where the one function or element given as the argument is the only feature in the code block that might not be supported.
如果作为参数给出的函数或者元素是代码块中惟一可能不受支持的特性,可选择后两种形式。
This synchronized code block acquires the lock associated with the customer class object before it executes.
同步的代码块在执行之前需要与客户类对象相关的锁。
In short, the moral to this story is to always convince yourself that the invariants inside a code block ensure that any casts in the block will always succeed.
简言之,这些方法的本质总是使您确信代码块内部的不变量会确保代码块中的任何类型强制转换都将成功。
Comments in the code block above indicate the points at which these actions are performed.
代码块上的注释指明了在哪里这些操作会被执行。
This code block exemplifies the fact that the code using the untyped DataSet is not as elegant as the code that was written using the strongly typed DataSet.
此代码块举例说明了这样的事实,使用非类型化数据集编写的代码没有使用强类型数据集编写的代码优雅。
The ampersand identifies the parameter as the holder of a code block.
该符号将参数识别为代码块的持有者。
The longer a synchronized code block requires for execution, the longer other threads wait to enter that block.
同步代码块所需的执行时间越长,其他线程等待进入该代码块的时间就越长。
Code block: it allows you to format text as code blocks. Simple select the text and format it by clicking the "code block" ToolBar button.
代码块:这个编辑器允许你把文本格式化为代码块,只要简单地选中文本,然后点击“代码块”按钮来进行格式化即可。
The second code block (lines 6-7) just passes the root element of the document off to the recursive modification method I'll get to in a moment.
第二个代码块(第6 -7行)只是将文档的根元素传递给我马上要谈到的递归修改方法。
Another example is uncommon traps: when a code block is initially compiled, only the most likely code path is compiled, while atypical branches (such as exception paths) are left interpreted.
另一个例子是不常用的分支:在最初编译一个代码块时,只编译最常用的代码路径,而不常用的分支(比如异常路径)仍然采用解释方式。
At a rough level, you usually just want to automatically call a less specific rule at either the start or the end of execution of a code block.
在粗糙的层次上,您通常只想在开始或结束执行代码块时自动调用不太特定的规则。
A code block is simply a block of code that returns a value, and if no value is returned then a NULL object is returned.
代码块就是将返回一个值的一组代码,如果没有返回值,那么会返回一个NULL对象。
At some point, you're going to have to face that massive code block and call it your own.
随后的某一时刻,您必须面对大量代码块并将它们搞定。
The short code block in Listing 22 demonstrates how you can display a message to the console upon any adding, deleting, or changing a record in the RMS.
清单22中的一小段代码展示了如何在RMS的记录发生添加、删除或更改的时候把消息显示在控制台上。
I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
That code block does nothing but increment the value of the local variable and return it.
代码段做的事就是增加本地变量的值并返回。
In Listing 6, I create a composite code block that composes two functions.
在清单6中,我创建了一个由两个函数组成的composite代码块。
The method executes the code block using the instance_eval method, one of the built-in methods in Ruby.
使用instance_eval方法可使该方法执行代码块,这是Ruby中的内置方法之一。
Within the code block, the delegate keyword refers to the instance of the class you are adding methods to.
在代码块中,delegate关键字指向您将要向其中添加方法的类的实例。
应用推荐