数组标识符中的数据必须可转换为类型化数组的数据类型。
The data in the array literal must be convertible to the data type of the typed array.
当脚本创建或初始化数组时,它就会设置类型化数组中元素的数量。
When the script creates or initializes the array, it sets the number of elements in a typed array.
首先,将数组标识符转换为类型化数组,后者用于初始化类型化数组。
First, the array literal is converted to a typed array, which is used to initialize the typed array.
此外,类型化数组是“稠密的”,即在允许的范围内的每个索引都引用一个元素。
In addition, typed arrays are dense, that is, every index in the allowed range refers to an element.
数组标识符不能初始化多维类型化数组,但可以初始化类型化数组的类型化数组。
An array literal cannot initialize a multidimensional typed array, but an array literal can initialize a typed array of typed arrays.
数组被类型化,所以您需要很清楚地知道数组中每个项目的变量类型是什么。
Arrays are typed, and so you know exactly what variable type is going to be needed for each item in the array.
GridView控件是可以绑定数组、集合和类型化数据集的控件家族中的一员。
The GridView control is part of a family of controls that can bind to data sources such as arrays, collections, and typed DataSets.
序列化类型的数组或集合也是序列化的。
An array or collection of serializable types is also serializable.
这个子接口提供了关于数组类型的信息,数组的组件类型可以是参数化的,也可以是一个类型变量。
This subinterface provides information about array types, where the component type of the array is either parameterized or a type variable.
在某些方面,大多数组织都建立了一些框架或者有效代码的类型,并通过为开发人员创建简单的API使复杂性抽象化。
In the same way, most organizations have established some type of framework or utility code that abstracts away complexity by creating a simple API for developers to follow.
大多数组件都已就绪,可以泛化这个脚本,处理其他设备类型。
Most of the pieces are in place to generalize this script to deal with other types of devices.
编译器不知道V到底表示什么类型,因此不能实例化V数组。
The compiler doesn't know what type V really represents, so it cannot instantiate an array of V.
从属类型的标准实例是数组大小参数化的数组。
The canonical example of dependent types is that of an array type parameterized by the size of the array.
VisualBasic10为数组初始化增加了类型推断。
Visual Basic 10 adds type inference for initialization arrays.
要创建一个类型为a [m]的一维数组(这里的m是一个已经被定义和初始化的整数变量),可以在uml模型中在这个数组变量a上运行cpp _type原型。
To create a single dimensional array of the type a [m] (where m is an integer variable already defined and initialized), apply the cpp_type stereotype on the array variable a in the UML model.
类似地,在初始化数组或其他容器类型的元素的时候,也可能发生异常,同样,也要保证将会适当地撤销已构造的元素。
Similarly, an exception might occur when initializing the elements of an array or other container type. Again, we are guaranteed that the constructed elements will be destroyed.
动态分配数组时,如果数组元素具有类类型,将使用该类的默认构造函数( 第2.3.4节)实现初始化;
When we allocate an array of objects of a class type, then that type's default constructor ( Section 2.3.4, p. 50) is used to initialize each element.
这包括诸如数组、集合、非类型化数据集和数据阅读器之类的数据源。
This includes data sources such as arrays, collections, untyped datasets, and data readers.
数组创建和初始化的形式,它从数组初始化器推导出数组的元素类型。
Implicitly typed arrays, a form of array creation and initialization that infers the element type of the array from an array initializer.
其中第一个数组是string类型,分配了保存对象的内存空间后,将调用string类型的默认构造函数依次初始化数组中的每个元素。
In the first case, those objects are strings. After allocating memory to hold the objects, the default string constructor is run on each element of the array in turn.
请注意,在上一个示例中,没有在初始化语句的左侧对隐式类型的数组使用方括号。
In the previous example, notice that with implicitly-typed arrays, no square brackets are used on the left side of the initialization statement.
因为编译器不能从这个方式阻止你破坏类型安全,它只能阻止你创建任何的参数化类型类型数组。
Since the compiler can't prevent you from defeating type safety in this way, it instead prevents you from creating any array of generic type.
因为编译器不能从这个方式阻止你破坏类型安全,它只能阻止你创建任何的参数化类型类型数组。
Since the compiler can't prevent you from defeating type safety in this way, it instead prevents you from creating any array of generic type.
应用推荐