在结构体中初始化实例字段也是错误的。
It is also an error to initialize an instance field in a struct body.
几乎所有更改都会涉及对串行化有某种影响的一个类的实例字段。
Almost any change you make that involves a class's instance fields has some impact on serialization.
不安全缓冲区只能是不安全上下文中的结构的实例字段。
Unsafe buffers can only be instance fields of structs in an unsafe context.
类或结构可以拥有实例字段或静态字段,或同时拥有两者。
A class or struct may have instance fields or static fields or both.
实例方法声明一个名称与声明类型的实例字段匹配的参数或局部变量。
An instance method declares a parameter or a local variable whose name matches an instance field of the declaring type.
实例可以使用该方法,比如从数据库中读取数据,在实例字段中缓存数据。
The instance can use this method, for example, to read data from a database and cache the data in the instance fields.
尽管类的实例包含该类所有实例字段的单独副本,但每个静态字段只有一个副本。
While an instance of a class contains a separate copy of all instance fields of the class, there is only one copy of each static field.
也可以在类或方面上编写合约测试,在这些类或方面中可以在构造函数上定义测试,在实例字段上定义不变条件。
You can also write contract tests on classes or aspects, where you can define tests on constructors and invariant conditions on instance fields.
在这个例子中,A扩展了b;但是,即使A用其他方式引用B,也会出现同样的问题——例如,以方法参数引用或作为实例字段。
In this example, a extends B; however, the same error would still occur if a referenced B in any other way — as a method parameter, for example, or as an instance field.
在cached - handle模式中,应用程序在一开始是获得连接,然后在一个实例字段中缓存对它的引用,如清单2所示。
In the cached-handle model, the application obtains the connection once up-front and caches a reference to it in an instance field, as illustrated in Listing 2.
如果没有beforefieldinit,运行库就必须在某个精确时间运行类型构造函数,即,恰好在第一次访问该类型的静态或实例字段和方法之前。
Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.
如果实例字段是从一个附属的XSD模式生成的,或者与其相关联,那么LotusFormsDesigner会通过检查模式决定并创建最适当的表示条目。
If the instance fields were generated from or are related to an enclosed XSD schema, Lotus Forms Designer examines the schema to determine and create the most appropriate presentation item.
模板声明一个或多个字段,它们一起构成实例的持久化标识。
The stereotype declares one or more fields, which together form the persistent identity of an instance.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
在我们的实例中需要强制填写几个字段。
可用它来访问类实例中的字段和方法,从而提供了一种在运行时将类动态地挂钩在一起,却无需类之间有任何源代码链接的方法。
It can be used to access fields and methods in instances of a class, giving a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
清单2中展示的代码片段使用实例值加载表单字段。
The code snippet shown in listing 2 loads the form fields with instance values.
在主机名(或IP地址)字段中输入您实例的IP地址。
In the Host name (or IP address) field, type the IP address of your instance.
首先,必须把字段从单个实例变量修改成字段和值组合构成的散列表。
First, you must change the fields from individual instance variables to a hash table of field and value pairs.
输入字段绑定到实例数据。
当然,后续执行将从修补代码中获益,从而可以更直接地引用实例、静态字段或方法目标。
Subsequent executions, of course, will benefit from the result of patching the code so that the instance or static field, or method target, is more directly referenced.
定义实例数据、创建输入字段并绑定到数据之后还有一项工作:规定表单数据向后端系统的提交方式。
Once you define your instance data, create input fields, and bind them to that data, at least one task remains: to provide for submission of the form data to your back-end system.
对于本文来说,我想使它保持简单,因此只使用包含在实例的描述中的单个字段的注释。
For this article, I'm going to keep it simple and just use an annotation on the individual fields to be included in the description of an instance.
许多编程语言支持字段索引的概念,字段索引用于访问重复字段的特定实例。
Many programming languages support the concept of a field index for accessing a particular occurrence of a repeating field.
注意,一个实例的状态就是该实例的字段所呈现的值的联合。
Note that the state of an instance is the union of all the values currently represented by the instance's fields.
对每个提取的实例,按正确的顺序用 ResourceProperties(CMP字段)组成IndexedRecord。
For each extracted instance, compose an IndexedRecord with the ResourceProperties (CMP fields) in the right order.
Field类本身相当简单;它几乎包含了这个字段的实例变量,访问这些变量的方法,一个toString方法,和一个标准的构造方法。
The field class itself is pretty simple; it pretty much consists of the instance variables of the field, accessor methods for those instance variables, a toString method, and a normal constructor.
图3描述了表单上Name文本字段和数据实例的Name元素之间的关系。
Figure 3 depicts the relationship between the Name text field on the form and the Name element of the data instance.
存储过程会输出之前在解释表中填充的explain实例的关键字段。
The stored procedures output the key fields for the explain instance that was populated in the explain tables.
updated字段包含对该实例做出的最新更新的时间戳。
The updated field contains the timestamp of the last update made to the instance.
应用推荐