我们可以在同一个代码块中定义回调函数,但是使用一个名称。
We could define the callback function in the same code block, but with a name.
代码与容器之间只需在名称的使用上达成一致就可以。
The code and the container need only agree on the name to use.
这些忠告建议将提供商与软件包名称包含在存放代码和数据的位置。
These recommendations suggest including the vendor and package name in the location of the code and data.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
But in general, the choice of variable name is a great way of commenting your code.
因此,您必须使用这个引用名称,除非您对代码作相应的修改。
Therefore, you have to follow this reference name unless you make the corresponding changes in the code.
有了这种安排,代码和容器甚至在资源所使用的名称上不用达成一致。
With this setup, the code and the container do not even have to agree on the name to use for the resource.
下面的代码用于检索这些资源的名称,还可以使用这里没有列举的其他值。
The following code retrieves the names of each of these resources; other values not listed here are also available.
段可以包含可执行代码、符号名称、初始数据值和许多其他类型的数据。
Sections can contain executable code, symbol names, initialized data values, and many other types of data.
资源引用名:资源引用的名称,是代码部分用来识别资源之用。
Resource reference name: the name for the resource reference that the code component uses to identify the resource.
如果您想调用的代码已经存在,则只需改变类名以与它的名称匹配。
If the code that you want to call already exists, just change the class name to match its name.
最初的想法是开发能够由随机作者名称直接查询浏览数据库的定制代码。
The initial idea was to develop custom code that would query the Browse database directly for a random author name.
名称冲突不仅仅是第三方代码才有的问题。
在进行JNDI名称查询时将在代码中使用这个引用名。
This reference name is used in the code when doing a JNDI name lookup.
您只需创建字段名称,然后在代码中使用。
清单5显示更改字体名称的控制代码。
Listing 5 shows the code for the control to change the name of the font.
如果我想要改变我的代码中某个方法的名称,改就好了。
If I were just going to change a method name in my code, I'd just do it.
这与前述获得按钮名称的代码非常相似。
This is very similar to the preceding code that got the name of the button.
清单1中的机场名称信息通常是一行代码。
Note that the airport name information in Listing 1 usually is a single line of code.
如果没有名称空间,代码会很简单。
代码和名称。
该努力的代码名称是“Oslo”。
在代码中使用客户名称或引用,您实际就是让代码立即变得落伍,限制了其用途。
By using the customer name or reference in the code, you are instantly dating your code and limiting its use.
使用名称空间可以帮助识别代码提供的函数或实用程序,甚至可以帮助指定其来源。
The use of namespaces can help identify what function or utility the code provides, or even help specify its origin.
这意味着,借助所提供的代码,您只需在根节点上声明此名称空间。
This means, with the code provided, you only get the namespaces declared on the root node.
上述代码只找到了根元素的名称空间。
这种方法有很多名称:配置管理、变更管理、源代码控制、库控制、版本控制等等。
This approach has many names: configuration management, change management, source code control, library control, version control and so on.
不要在代码中使用客户名称或引用。
通过为服务器名称、API名称等设置变量或属性文件可以改进此代码,我将把这项任务留给您去做。
I'll leave it up to you to improve this code by setting up variables or property files for the server name, API name, and so on.
最后,我们可以只在代码中使用名称空间,这就使它成为默认名称空间,并且在默认情况下,使所有代码都引用默认名称空间。
And finally, we can simply just use the namespace within our code, which makes it the default namespace and, by default, makes all calls reference that.
这些代码行是原始主题名称的翻译。
应用推荐