如果巢状结构的目的是将巢状型别进行分类,请改用命名空间建立阶层架构。
If the purpose of the nesting is to categorize the nested type, use a namespace to create the hierarchy instead.
借由检查命名空间阶层,程序库消费者应能够找出会实作功能的型别。
By examining the namespace hierarchy, library consumers should be able to locate the types that implement a feature.
型别会在命名空间中宣告以防止名称冲突,而且可当做组织物件阶层架构中相关型别的一种方法。
Types are declared in namespaces to prevent name collisions, and as a way to organize related types in an object hierarchy.
型别会在命名空间中宣告以防止名称冲突,而且可当做组织物件阶层架构中相关型别的一种方法。
Types are declared in namespaces to prevent name collisions, and as a way to organize related types in an object hierarchy.
应用推荐