Defines a nested type, given its name.
已知名称和特性,定义嵌套类型。
Defines a nested type, given its name and attributes.
定义指定其名称和属性的巢状型别。
Describes prohibited edits of nested type declarations.
说明巢状型别宣告所禁止的编辑。
A nested type is a type that is a member of some other type.
嵌套类型是作为某其他类型的成员的类型。
Searches for the public nested type with the specified name.
搜索具有指定名称的公共嵌套类型。
A nested type is a type declared within the scope of another type.
嵌套类型是在另一个类型的范围中声明的类型。
That is, the domain is the type body, which includes all nested types.
也就是说,定义域是型别主体,其中包括所有的巢状型别。
A nested type argument is a type argument that is also a generic type.
巢状型别引数就是也是泛型型别的型别引数。
If a nested type is generic, this method returns its generic type definition.
如果嵌套类型为泛型,则此方法返回其泛型类型定义。
Defines a nested type, given its name, attributes, and the type that it extends.
定义巢状型别,指定其名称、属性和其扩充的型别。
The accessibility domain of a nested type never exceeds that of the containing type.
嵌套类型的可访问域决不能超出包含类型的可访问域。
Nested types can be partial, even if the type they are nested within is not partial itself.
嵌套类型可以是分部的,即使它们所嵌套于的类型本身并不是分部的也如此。
In general, a nested type should not perform tasks for types other than its declaring type.
一般来说,巢状型别不应该针对非其宣告型别以外的型别执行工作。
The Listing 7 output shows how nested type definitions are used within the parsed signatures.
清单7输出显示了嵌套类型定义在被解析的签名中的使用方法。
Do not use nested types if the type is likely to be referenced outside of the declaring type.
如果可能在声明类型的外部引用类型,则不要使用嵌套类型。
If you do not intend the nested type to be externally visible, change the type's accessibility.
如果您不想让巢状型别变成外部可见,请变更型别的存取范围。
Defines a nested type, given its name, attributes, the type that it extends, and the packing size.
定义巢状型别,指定其名称、属性、其扩充的型别和封装大小。
You will have a compile-time error something like: "The nested type Person cannot hide an enclosing type".
否则将会导致一个编译时间错误,如 “该嵌套类型Person无法隐藏封闭类型”。
This allows the type parameters of enclosing types to be used in the member definitions of a nested type.
这可让您在巢状型别的成员定义中使用封入型别的型别参数。
Defines a nested type, given its name, attributes, the total size of the type, and the type that it extends.
定义巢状型别,指定其名称、属性、型别的总共大小和其扩充的型别。
If the purpose of the nesting is to categorize the nested type, use a namespace to create the hierarchy instead.
如果巢状结构的目的是将巢状型别进行分类,请改用命名空间建立阶层架构。
Defines a nested type, given its name, attributes, the type that it extends, and the interfaces that it implements.
定义巢状型别,指定其名称、属性、其扩充的型别和其实作的介面。
When overridden in a derived class, searches for the specified nested type, using the specified binding constraints.
在衍生类别中覆写时,使用指定的系结条件约束搜寻指定的巢状型别。
The behavior and state of a type are defined by the members of the type: events, fields, nested types, methods, and properties.
类型的行为和状态是由类型的成员定义的,如事件、字段、嵌套类型、方法和属性。
Because a nested type is treated as a member of the declaring type, the nested type has access to all other members in the declaring type.
由于嵌套类型被视为是声明类型的成员,因此嵌套类型可以访问声明类型中的所有其他成员。
Do use nested types when the relationship between the nested type and its outer type is such that member accessibility semantics are desirable.
如果嵌套类型和其外部类型之间的关系需要成员可访问性语义,则要使用嵌套类型。
The only exception to this is when variables of the nested type need to be declared in rare scenarios such as subclassing or other advanced customization scenarios.
唯一的特例是需要声明嵌套类型的变量的情况,在生成子类或其他高级自定义等极少数情况下需要声明嵌套类型的变量。
This naming strategy can be applied to any type of nested logical contexts, not just program unit contexts.
这种命名策略可以应用于任何类型的嵌套逻辑环境,而不只是程序单元环境。
Note that the values in a list or dictionary don't have to be all of the same type; you can mix strings, Numbers, and even nested lists and dictionaries if you wish.
注意,列表或字典中的值不一定必须是相同的类型;可以混合使用字符串、数字,甚至是嵌套的列表或字典,如果需要的话。
A proven practice for handling the identification of logon data type is to use nested if statements which will check for Trusted Credentials, Credentials, Forms and finally for SSO.
对于识别登录数据类型,一种已经证明有效的做法是使用嵌套的IF语句检查可信凭证、凭证和表单,最后检查sso。
应用推荐