You can either type in the code shown below or copy and paste it from the file provided with the article.
可以键入以下所示的代码,或从随本文提供的文件进行复制粘贴。
Calling CARDS can be used on a friend's home phone or any private as well as any public phone. If there is no card slot, you will just have to type in the code yourself.
你可以在朋友家或任何私人场合或公共场合的电话使用电话卡。如果没有插卡槽,你就得自己输入卡号。
If your application USES character type variables for XML, then it is externally encoded, i.e. in the application code page.
如果应用程序为XML使用字符类型的变量,那么它就要在外部编码,即在应用程序代码页中编码。
Note that the problem with allowing such potentially explosive code is not that programmers could intentionally override the type system in their own code.
请注意允许这种有潜在“爆炸性”的代码存在所带来的问题并不是程序员有意在自己的代码中覆盖类型系统。
The protocol type that you select in the transformation configuration determines the synchronization level between the source model and the target code.
您在转换配置中选择的协议种类,决定了源模型与目标代码之间的同步化水平。
I leave this type of code active in production builds because the thread check is cheap.
在构建产品时我会保留此类代码,因为线程检查很开销较低。
The type case is not important in general, but certain implementations specify a particular case for the combination of language code and country code.
字号一般不重要,但某些标准中在语言代码和国家代码组合中也规定了字号。
The RJCB code generator generates Java proxies for each vtable interface and coclass defined in the COM type library.
RJCB代码生成器为COM类型库中定义的每个vtable接口和 辅助类生成代理。
Generate - This option generates the code (deployment or consumption) and depends on the TYPE supplied in the configuration file.
generate——此选项根据配置文件中指定的TYPE生成代码(部署或消费)。
After I use the Infer Generic type Arguments refactoring, Eclipse automatically determines the correct type parameters and produces the code shown in Listing 8.
在使用了InferGenericTypeArguments重构后,Eclipse会自动地确定正确的类型参数并生成清单8中的代码。
As an example, Listing 6 shows what happens when I change the type of the local variable used for the method start time in the interceptor code from long to int.
作为一个例子,清单6展示了在将方法开始时的拦截器代码所使用的局部变量的类型从long变为int时的情况。
When explicit type information for variables is written in the code, these type annotations follow the colon after the item name (i.e., Pascal-like syntax).
当在代码里显式地为变量指定类型信息时,类型注解应该跟在变量名的冒号后面(也就是类pascal语法)。
In addition, Visual Basic.net allows you to touch a static member through an instance of a type, even a derived type, as you can see in the code in Figure 12.
另外,Visual Basic . NET允许您通过类型的实例、甚至派生类型的实例来触及静态成员,如图12中的代码所示。
What is the type for x1 in the Listing 13 code?
在清单13中,x1的类型是什么?
By having this type of discussion, you can better see if the code is engineered in a consistent fashion.
通过进行此类讨论,您可以更好地了解代码是否为采用一致的方式设计的。
If you want to follow along with the code samples in this article, you'll need to Download the source archive (unless you want to type it in).
如果想随同本文一起学习代码示例,将需要下载源代码存档(除非您想亲自键入它)。
For those who want to follow along, you may type each line of code in the code listings individually at the prompt.
对于那些想要继续的人,可以在提示符中分别输入代码清单中的每行代码。
The same model applies no matter what type of code you are checking in (or documents for that matter).
无论检入何种类型的代码(或文档之类),同样的模型也是可用的。
Asking users to type in the IATA code is a reasonable alternative to forcing them to scroll through hundreds of possible airports.
与要求用户滚动查找数百个可能的机场相比,要求他们输入IATA编码一个不错的替代方法。
Substitute the second currency type value in the recording (USD) with custom code from SAMPLE_VAR2.
将记录(usd)中第二个货币类型值替换为来自SAMPLE_VAR2的定制代码。
You can see the type substitution code in action in the output at the bottom of Listing 6 (restructured slightly for formatting).
在清单6底部的输出中(为了格式化稍微重新调整了结构),可以看到类型替换代码的作用。
Just type in the verification code and the book is securely transmitted to your mobile device.
只要输入验证码,这本书就能安全地发送到你的移动设备里。
For example, to extract the second argument of command 782 in the history log, type the code shown in Listing 4.
例如,要提取历史日志中命令 782的第二个参数,可以输入清单4 中所示的代码。
Note how the code taken from the GUI in Listing 5 references the interface type only — the implementation of the interface is not used (or imported) anywhere in the GUI.
注意,清单5中的GUI中的代码只引用接口类型——GUI中的任何地方都没有使用(或导入)接口的实现。
For the purpose of this exercise, assume that you can't find out by reading the source code the type of component used as the text area in the HTML editor.
出于本练习的需要,假定您不能通过阅读源码查明在HTML编辑器中用作文本区域的组件的类型。
However, the code in Listing 7 doesn't specify the type parameters.
然而,清单7中的代码并不指定类型参数。
The toys have a tag with a code that you type in to meet the virtual edition of your pet, or perhaps to meet with the pets of other children.
这些玩具有着已编号的标签,让你输入然后获得虚拟版本的宠物,或看见其他孩子的宠物。
With an understanding of Generics, you can see that there should be no reason to replace the type arguments in this block of code with the typical 't' found in Generics.
基于对泛型的了解,你可以发现没有理由不在这段代码里替换类型参数为泛型里典型的'T '。
Keep in mind that it is possible for this factory to register and create more than one type of aggregation, but you do this in the body of the code.
请记住,此工厂可以注册和创建多个聚合类型,但这需要在代码体中操作。
Type the snippet of code shown in Listing 1 (to experience the completion features of the editor), which is supposed to print the digits 1-10.
输入清单1 所示的代码片段,体会一下编辑器的代码补全特性。这段代码的意图是输出数字1-10。
应用推荐