Avoid publicly exposed nested types.
避免公开显露嵌套类型。
Describes guidelines for designing nested types.
描述设计嵌套类型的准则。
Similarly, vector declares the nested types iterator and const_iterator.
相同的,vector申明了嵌套的iterator和const_iterator。
Used for this purpose, nested types should not be externally visible.
如果用于此用途,则嵌套类型不应是外部可见的。
That is, the domain is the type body, which includes all nested types.
也就是说,定义域是型别主体,其中包括所有的巢状型别。
Type members include fields, methods, properties, constructors and nested types.
类型成员包括字段、方法、属性、构造函数和嵌套类型。
Nested types can be partial, even if the type they are nested within is not partial itself.
嵌套类型可以是分部的,即使它们所嵌套于的类型本身并不是分部的也如此。
Do not use nested types if the type is likely to be referenced outside of the declaring type.
如果可能在声明类型的外部引用类型,则不要使用嵌套类型。
Protected types can be used in subclasses and nested types in advance customization scenarios.
受保护的型别适用于进阶自订案例中的子类别和巢状型别。
Nested types are often used to describe objects that are used only by the types that contain them.
通常用于描述仅由包含它们的类型所使用的对象。
Nested types include the notion of member accessibility, which some programmers do not understand clearly.
嵌套类型包含成员可访问性的概念,不是所有的程序员都清楚了解该概念。
Declaration of variables and object instantiation for nested types should not be required in common scenarios.
在常见方案中,不应要求对嵌套类型进行变量声明和对象实例化。
Nested types should be tightly coupled to their declaring type and must not be useful as a general purpose type.
巢状型别应该紧密地与其宣告型别结合,且不能与一般用途的型别一样实用。
Nested types are confusing to some developers and should not be publicly visible unless there is a compelling reason to do so.
有些开发人员会将嵌套类型弄混淆,因此嵌套类型不应是公开可见的,除非不得不这样做。
The behavior and state of a type are defined by the members of the type: events, fields, nested types, methods, and properties.
类型的行为和状态是由类型的成员定义的,如事件、字段、嵌套类型、方法和属性。
Do use nested types when the relationship between the nested type and its outer type is such that member accessibility semantics are desirable.
如果嵌套类型和其外部类型之间的关系需要成员可访问性语义,则要使用嵌套类型。
The structure of SQL-like nested queries is examined. It is shown that any SQL- like nested query can be decomposed into four basic nested types.
本文分析了SQL类查询语句的基本结构,指出任何一个嵌套结构的SQL类语句都可以由四种基本嵌套类型组成。
This means that there are nested container types.
这也就是说,存在嵌套的容器类型。
One of the input/output messages is nested or contains complex types.
某个输入/输出消息是嵌套的或包含复杂的类型。
Of course, elements can be based on complex types, which means they might contain sub-elements (or nested hierarchies).
当然,元素也可能基于复杂的数据类型——即包含子元素(或嵌套层次结构)。
But in our opinion, anonymous types aren't as readable as named types; a deeply nested XML structure is almost always more difficult to understand readily.
但我们认为,匿名类型没有命名类型那样的可读性;深层嵌套的XML结构通常难以理解。
I decide again to use nested arrays in the types argument. The structure of each element of the types array is.
我决定再次在types参数中使用嵌套数组。
Note that this feature is deprecated and should not be used when creating new message types – use nested message types instead.
注意:这个特性已经被弃用了,在创建新的消息类型的时候,不应该再使用它——你应该使用嵌套消息类型来代替它。
This method consists of two nested loops: the first loop iterate through all the registered types.
这个方法由两个嵌套的循环组成:第一个循环遍历所有注册的类型。
In general, a nested type should not perform tasks for types other than its declaring type.
一般来说,巢状型别不应该针对非其宣告型别以外的型别执行工作。
This allows the type parameters of enclosing types to be used in the member definitions of a nested type.
这可让您在巢状型别的成员定义中使用封入型别的型别参数。
Nested enumerations and protected types are exempt from this rule.
但是巢状列举和受保护的型别则不受限于此规则。
Nested enumerations and protected types are exempt from this rule.
但是巢状列举和受保护的型别则不受限于此规则。
应用推荐