当对当前类启用跟踪时,清单7就创建了这些对象和数组。
Listing 7 creates these objects and arrays when trace is enabled for the current class.
这对于基本功能已经很不错了,但是在实际中,您可能需要返回更复杂的类型,比如对象和数组。
This is fine for basic functions, but in reality, you're likely to need to return complex types such as objects and arrays.
原则上,创建此类代码不是特别困难,但可能让人感到有些枯燥无味,而且在编写时也容易出错,特别是在数据对象比较大并包含嵌入的对象和数组时。
In principle, creating such code is not particularly difficult, but can be somewhat tedious and error prone to write, especially if the data object is large and contains nested objects and arrays.
您可以缓存任何类型的数据,包括完整的对象图形、定制类、地图和数组。
You can cache any kind of data, including full object graphs, custom classes, maps, and arrays.
高效,这是通过使用Bartok的对象、方法表和数组的本地布局达到的。
Highly efficient through the use of Bartok's native layouts for objects, method tables and arrays.
ListChildren方法返回CatalogItem对象的数组,该数组表示用户有权查看的项,包括报表、文件夹和数据源。
The ListChildren method returns an array of CatalogItem objects representing the items that the user has permission to view, including reports, folders, and data sources.
SimpleXML扩展:探索 SimpleXML工具集,它将XML转换成对象,从而允许通过一般的属性选择符和数组迭代器进行处理。
SimpleXML extension: Explore the SimpleXML toolset that converts XML to an object for you to process with normal property selectors and array iterators.
JSON支持除对象之外的各种数据类型:字符串、空值、数字(整数或实数)、布尔值和数组(包含在方括号中的逗号分隔的值序列)。
JSON data supports various data types besides objects: strings, null values, Numbers (integer or real), Boolean values, and arrays (comma-separated sequences of values enclosed in square brackets).
选项主要是字符串和数值,但有些是数组、其它对象甚至是方法。
The options are mainly strings and Numbers, but some are arrays, other objects or even functions.
语言在指针和数组方面的强大功能,以及面向对象技术,极大地方便了程序的编写。
C plus plus language has the powerful function in pointer and array and object-oriented programming (OOP) technology which are in favor of programming.
随着对象属性和数组项数的增加,使用直接量的好处也随之增加。
As the number of object properties and array items increases, so too does the benefit of using literals.
随着对象属性和数组项数的增加,使用直接量的好处也随之增加。
As the number of object properties and array items increases, so too does the benefit of using literals.
应用推荐